R/data-helmet.R

#' Socioeconomic status and reduced-fee school lunches
#'
#' Examining the relationship between socioeconomic status measured as the
#' percentage of children in a neighborhood receiving reduced-fee lunches at
#' school (lunch) and the percentage of bike riders in the neighborhood wearing
#' helmets (helmet).
#'
#'
#' @name helmet
#' @docType data
#' @format A data frame with 12 observations representing neighborhoods on the
#' following 2 variables.
#' \describe{
#'   \item{lunch}{Percent of students receiving reduced-fee school lunches.}
#'   \item{helmet}{Percent of bike riders wearing helmets.}
#'   }
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(helmet, aes(x = lunch, y = helmet)) +
#'   geom_point()
"helmet"

Try the openintro package in your browser

Any scripts or data that you put into this service are public.

openintro documentation built on Sept. 1, 2022, 9:06 a.m.