Hi,
This problem has been bothering me for about two days now. You see, I'm following a tutorial on Youtube that teaches how to use the dplyr package. Since the video is from 2014, some of the codes have changed. I kept getting warnings for these lines of codes:
flights %>%
group_by(UniqueCarrier) %>%
summarise_each(funs(min(., na.rm=TRUE), max(., na.rm=TRUE)), matches("Delay"))
The warning that I got says this:
funs() is soft deprecated as of dplyr 0.8.0
*Please use a list of either functions or lambdas: *
-
Simple named list: *
-
list(mean = mean, median = median)*
-
Auto named with tibble::lst(): *
-
tibble::lst(mean, median)*
-
Using lambdas*
-
list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))*
The code that I'm trying to get it working is suppose to calculate the maximum and minimum arrival and departure delays. Any help is appreciated!