|
|
|
|
|
|
|
|
- [**Tidy Data**](#tidy-data) — [`spread()` and `gather()`](#spread-and-gather) |
|
|
- [**Tidy Data**](#tidy-data) — [`spread()` and `gather()`](#spread-and-gather) |
|
|
|
|
|
|
|
|
- Learn more about |
|
|
- Learn more about |
|
|
|
|
|
- [Using the animations and images](#usage) |
|
|
- [Relational Data](#relational-data) |
|
|
- [Relational Data](#relational-data) |
|
|
- [gganimate](#gganimate) |
|
|
- [gganimate](#gganimate) |
|
|
|
|
|
|
|
|
|
|
|
## Background |
|
|
|
|
|
|
|
|
|
|
|
### Usage |
|
|
|
|
|
|
|
|
Please feel free to use these images for teaching or learning about action verbs from the [tidyverse](https://tidyverse.org). |
|
|
Please feel free to use these images for teaching or learning about action verbs from the [tidyverse](https://tidyverse.org). |
|
|
You can directly download the [original animations](images/) or static images in [svg](images/static/svg/) or [png](images/static/png/) formats, or you can use the [scripts](R/) to recreate the images locally. |
|
|
You can directly download the [original animations](images/) or static images in [svg](images/static/svg/) or [png](images/static/png/) formats, or you can use the [scripts](R/) to recreate the images locally. |
|
|
|
|
|
|
|
|
Currently, the animations cover the [dplyr two-table verbs][dplyr-two-table] and I'd like to expand the animations to include more verbs from the tidyverse. |
|
|
Currently, the animations cover the [dplyr two-table verbs][dplyr-two-table] and I'd like to expand the animations to include more verbs from the tidyverse. |
|
|
[Suggestions are welcome!](https://github.com/gadenbuie/tidy-animated-verbs/issues) |
|
|
[Suggestions are welcome!](https://github.com/gadenbuie/tidy-animated-verbs/issues) |
|
|
|
|
|
|
|
|
|
|
|
### Relational Data |
|
|
|
|
|
|
|
|
|
|
|
The [Relational Data](http://r4ds.had.co.nz/relation-data.html) chapter of the |
|
|
|
|
|
[R for Data Science](http://r4ds.had.co.nz/) book by Garrett Grolemund and Hadley Wickham |
|
|
|
|
|
is an excellent resource for learning more about relational data. |
|
|
|
|
|
|
|
|
|
|
|
The [dplyr two-table verbs vignette][dplyr-two-table] |
|
|
|
|
|
and Jenny Bryan's [Cheatsheet for dplyr join functions](http://stat545.com/bit001_dplyr-cheatsheet.html) |
|
|
|
|
|
are also great resources. |
|
|
|
|
|
|
|
|
|
|
|
### gganimate |
|
|
|
|
|
|
|
|
|
|
|
The animations were made possible by the newly re-written [gganimate] package by |
|
|
|
|
|
[Thomas Lin Pedersen](https://github.com/thomasp85) |
|
|
|
|
|
(original by [Dave Robinson](https://github.com/dgrtwo)). |
|
|
|
|
|
The [package readme][gganimate] provides an excellent (and quick) introduction to gganimte. |
|
|
|
|
|
|
|
|
## Mutating Joins |
|
|
## Mutating Joins |
|
|
|
|
|
|
|
|
```{r intial-dfs} |
|
|
```{r intial-dfs} |
|
|
|
|
|
|
|
|
gather(wide, key, val, x:z) |
|
|
gather(wide, key, val, x:z) |
|
|
spread(long, key, val) |
|
|
spread(long, key, val) |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Learn More |
|
|
|
|
|
|
|
|
|
|
|
### Relational Data |
|
|
|
|
|
|
|
|
|
|
|
The [Relational Data](http://r4ds.had.co.nz/relation-data.html) chapter of the |
|
|
|
|
|
[R for Data Science](http://r4ds.had.co.nz/) book by Garrett Grolemund and Hadley Wickham |
|
|
|
|
|
is an excellent resource for learning more about relational data. |
|
|
|
|
|
|
|
|
|
|
|
The [dplyr two-table verbs vignette][dplyr-two-table] |
|
|
|
|
|
and Jenny Bryan's [Cheatsheet for dplyr join functions](http://stat545.com/bit001_dplyr-cheatsheet.html) |
|
|
|
|
|
are also great resources. |
|
|
|
|
|
|
|
|
|
|
|
### gganimate |
|
|
|
|
|
|
|
|
|
|
|
The animations were made possible by the newly re-written [gganimate] package by |
|
|
|
|
|
[Thomas Lin Pedersen](https://github.com/thomasp85) |
|
|
|
|
|
(original by [Dave Robinson](https://github.com/dgrtwo)). |
|
|
|
|
|
The [package readme][gganimate] provides an excellent (and quick) introduction to gganimte. |
|
|
|