Add workflow advice from @jennybc

This commit is contained in:
hadley
2016-08-18 14:51:47 -05:00
parent 4cf15b541d
commit 93179cb523
14 changed files with 353 additions and 22 deletions

View File

@@ -558,7 +558,8 @@ flights %>%
In this case, where missing values represent cancelled flights, we could also tackle the problem by first removing the cancelled flights. We'll save this dataset so we can reuse in the next few examples.
```{r}
not_cancelled <- filter(flights, !is.na(dep_delay), !is.na(arr_delay))
not_cancelled <- flights %>%
filter(!is.na(dep_delay), !is.na(arr_delay))
not_cancelled %>%
group_by(year, month, day) %>%