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
No related merge requests found
Pipeline #683 passed
...@@ -281,7 +281,7 @@ flights %>% ...@@ -281,7 +281,7 @@ flights %>%
) %>% ) %>%
mutate(wday = strftime(time_hour,'%A')) %>% mutate(wday = strftime(time_hour,'%A')) %>%
group_by(wday) %>% group_by(wday) %>%
mutate( summarise(
prop_cancel_day = sum(canceled)/n(), prop_cancel_day = sum(canceled)/n(),
av_delay = mean(dep_delay, na.rm = TRUE) 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