Parcourir la source

updated readme

pkg
David il y a 7 ans
Parent
révision
19602f1902
2 fichiers modifiés avec 12 ajouts et 8 suppressions
  1. +5
    -3
      README.Rmd
  2. +7
    -5
      README.md

+ 5
- 3
README.Rmd Voir le fichier

# Tidy Animated Verbs # Tidy Animated Verbs


Garrick Aden-Buie -- [@grrrck](https://twitter.com/grrrck) -- [garrickadenbuie.com](https://www.garrickadenbuie.com). Garrick Aden-Buie -- [@grrrck](https://twitter.com/grrrck) -- [garrickadenbuie.com](https://www.garrickadenbuie.com).

David Zimmermann -- [@dav_zim](https://twitter.com/dav_zim) -- [datashenanigan.wordpress.com](https://datashenanigan.wordpress.com/) David Zimmermann -- [@dav_zim](https://twitter.com/dav_zim) -- [datashenanigan.wordpress.com](https://datashenanigan.wordpress.com/)

Set operations contributed by [Tyler Grant Smith](https://github.com/TylerGrantSmith). Set operations contributed by [Tyler Grant Smith](https://github.com/TylerGrantSmith).


[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/gadenbuie/tidy-animated-verbs/master?urlpath=rstudio) [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/gadenbuie/tidy-animated-verbs/master?urlpath=rstudio)
y_extra <- dplyr::bind_rows(y, dplyr::data_frame(id = 2, y = "y5")) y_extra <- dplyr::bind_rows(y, dplyr::data_frame(id = 2, y = "y5"))
y_extra # has multiple rows with the key from `x` y_extra # has multiple rows with the key from `x`


animate_left_join(x, y_extra, by = "id",
anim_opts = anim_options(title_size = 22))
animate_left_join(x, y_extra, by = "id", title_size = 22)
``` ```


```{r} ```{r}
> Gather takes multiple columns and collapses into key-value pairs, duplicating all other columns as needed. You use gather() when you notice that your column names are not names of variables, but values of a variable. > Gather takes multiple columns and collapses into key-value pairs, duplicating all other columns as needed. You use gather() when you notice that your column names are not names of variables, but values of a variable.


```{r gather} ```{r gather}
set_font_size(4.5, 15)
set_font_size(4, 15)
set_anim_options(anim_options(cell_width = 2))
animate_gather(wide, key = "person", value = "sales", -year) animate_gather(wide, key = "person", value = "sales", -year)
``` ```



+ 7
- 5
README.md Voir le fichier

# Tidy Animated Verbs # Tidy Animated Verbs


Garrick Aden-Buie – [@grrrck](https://twitter.com/grrrck) – Garrick Aden-Buie – [@grrrck](https://twitter.com/grrrck) –
[garrickadenbuie.com](https://www.garrickadenbuie.com). David Zimmermann
– [@dav\_zim](https://twitter.com/dav_zim) –
[garrickadenbuie.com](https://www.garrickadenbuie.com).

David Zimmermann – [@dav\_zim](https://twitter.com/dav_zim) –
[datashenanigan.wordpress.com](https://datashenanigan.wordpress.com/) [datashenanigan.wordpress.com](https://datashenanigan.wordpress.com/)

Set operations contributed by [Tyler Grant Set operations contributed by [Tyler Grant
Smith](https://github.com/TylerGrantSmith). Smith](https://github.com/TylerGrantSmith).


#> 3 4 y4 #> 3 4 y4
#> 4 2 y5 #> 4 2 y5


animate_left_join(x, y_extra, by = "id",
anim_opts = anim_options(title_size = 22))
animate_left_join(x, y_extra, by = "id", title_size = 22)
``` ```


![](man/figures/tidyexplain-left-join-extra-1.gif)<!-- --> ![](man/figures/tidyexplain-left-join-extra-1.gif)<!-- -->
> of a variable. > of a variable.


``` r ``` r
set_font_size(4.5, 15)
set_font_size(4, 15)
set_anim_options(anim_options(cell_width = 2))
animate_gather(wide, key = "person", value = "sales", -year) animate_gather(wide, key = "person", value = "sales", -year)
``` ```



Chargement…
Annuler
Enregistrer