R/avg.R

Defines functions avgarr_delay

Documented in avgarr_delay

#' average arrival delay
#'
#' this plots the avg arrival delay for american airlines flights departed from NYC
#'
#' @export
avgarr_delay <- function(){
  arrdelay <- aa[aa$arr_delay >= 0, ] #negative time is not delay
  sprintf("For American Airlines, the average arrival delay in 2013 was: %f minutes", mean(arrdelay$arr_delay , na.rm = T))
}
lucacerab/mrmee documentation built on Feb. 2, 2020, 5:46 p.m.