#' 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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.