R/average_age.R

Defines functions average_age

Documented in average_age

#' Calculates the average age of all Williams faculty
#' 
#' This function simply calculates and returns the mean of the ages of all Williams faculty.
#' 
#' @return the average age of all Williams faculty
#' @examples
#' average_age()
#' 
#' @export
average_age <- function() {
    data(data)
    return(round(mean(data$age),2))
} 
yz4/WilliamsFaculty documentation built on May 4, 2019, 8:47 p.m.