single typo edit
This commit is contained in:
nwaff 2016-07-26 05:42:04 -07:00 committed by Hadley Wickham
parent 8fe2f73ece
commit b16aec6b1f
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ summarise(flights, delay = mean(dep_delay, na.rm = TRUE))
(we'll come back to what that `na.rm = TRUE` means very shortly.)
`summarise()` is terribly useful unless we pair it with `group_by()`. This changes the unit of analysis from the complete dataset to individual groups. Then, when you use the dplyr verbs on a grouped data frame they'll be automatically applied "by group". For example, if we applied exactly the same code to a data frame grouped by date, we get the average delay per date:
`summarise()` is not terribly useful unless we pair it with `group_by()`. This changes the unit of analysis from the complete dataset to individual groups. Then, when you use the dplyr verbs on a grouped data frame they'll be automatically applied "by group". For example, if we applied exactly the same code to a data frame grouped by date, we get the average delay per date:
```{r}
by_day <- group_by(flights, year, month, day)