Skip to content

Commit

Permalink
Edit for parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Apr 11, 2018
1 parent 69b584c commit 45b31ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ex07_group-by-summarise.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ library(tidyverse)

iris %>%
group_by(Species) %>%
summarise(pl_avg = mean(Petal.Length), pw = mean(Petal.Width))
summarise(pl_avg = mean(Petal.Length), pw_avg = mean(Petal.Width))

#' What if you want to return summaries that are not just a single number?
#'
Expand Down
12 changes: 6 additions & 6 deletions ex07_group-by-summarise.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ library(tidyverse)

iris %>%
group_by(Species) %>%
summarise(pl_avg = mean(Petal.Length), pw = mean(Petal.Width))
summarise(pl_avg = mean(Petal.Length), pw_avg = mean(Petal.Width))
#> # A tibble: 3 x 3
#> Species pl_avg pw
#> <fct> <dbl> <dbl>
#> 1 setosa 1.46 0.246
#> 2 versicolor 4.26 1.33
#> 3 virginica 5.55 2.03
#> Species pl_avg pw_avg
#> <fct> <dbl> <dbl>
#> 1 setosa 1.46 0.246
#> 2 versicolor 4.26 1.33
#> 3 virginica 5.55 2.03
```

What if you want to return summaries that are not just a single number?
Expand Down

0 comments on commit 45b31ee

Please sign in to comment.