
Last chance! 50% off unlimited learning
Sale ends in
# S3 method for tbl_df
arrange(.data, ...)# S3 method for tbl_df
filter(.data, ...)
# S3 method for tbl_df
mutate(.data, ...)
# S3 method for tbl_df
summarise(.data, ...)
# S3 method for tbl_df
select(.data, ...)
.data
if (require("hflights")) {
filter(hflights, Month == 1, DayofMonth == 1, Dest == "DFW")
head(select(hflights, Year:DayOfWeek))
summarise(hflights, delay = mean(ArrDelay, na.rm = TRUE), n = length(ArrDelay))
head(mutate(hflights, gained = ArrDelay - DepDelay))
head(arrange(hflights, Dest, desc(ArrDelay)))
}
Run the code above in your browser using DataLab