Skip to content
Snippets Groups Projects
Commit 3ae3d016 authored by Carine Rey's avatar Carine Rey
Browse files

fix challenge 2 (switch mutate by summarise)

parent dbf58e37
No related branches found
No related tags found
1 merge request!6Switch to main as default branch
......@@ -281,7 +281,7 @@ flights %>%
) %>%
mutate(wday = strftime(time_hour,'%A')) %>%
group_by(wday) %>%
mutate(
summarise(
prop_cancel_day = sum(canceled)/n(),
av_delay = mean(dep_delay, na.rm = TRUE)
) %>%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment