name hour_perc should be hour_prop because proportion not percentage (#795)

This commit is contained in:
a-rosenberg
2020-01-15 11:28:51 -07:00
committed by Hadley Wickham
parent ba3892e3fe
commit 2182ff6248

View File

@@ -773,7 +773,7 @@ Just using means, counts, and sum can get you a long way, but R provides many ot
# What proportion of flights are delayed by more than an hour? # What proportion of flights are delayed by more than an hour?
not_cancelled %>% not_cancelled %>%
group_by(year, month, day) %>% group_by(year, month, day) %>%
summarise(hour_perc = mean(arr_delay > 60)) summarise(hour_prop = mean(arr_delay > 60))
``` ```
### Grouping by multiple variables ### Grouping by multiple variables