Skip to content

Commit

Permalink
Merge pull request hadley#71 from nareal/patch-1
Browse files Browse the repository at this point in the history
Update transform.Rmd
hadley committed Mar 24, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 9d3db21 + 5b21679 commit e6a207e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transform.Rmd
Original file line number Diff line number Diff line change
@@ -598,7 +598,7 @@ delays <- flights %>%
dist = mean(distance, na.rm = TRUE),
delay = mean(arr_delay, na.rm = TRUE)
) %>%
filter(delay, count > 20, dest != "HNL")
filter(count > 20, dest != "HNL")
```

This focuses on the transformations, not what's being transformed, which makes the code easier to read. You can read it as a series of imperative statements: group, then summarise, then filter. As suggested by this reading, a good way to pronounce `%>%` when reading code is "then".

0 comments on commit e6a207e

Please sign in to comment.