R/data-cle_sac.R

#' Cleveland and Sacramento
#'
#' Data on a sample of 500 people from the Cleveland, OH and Sacramento, CA
#' metro areas.
#'
#' @name cle_sac
#' @aliases cle.sac cle_sac
#' @docType data
#' @format A data frame with 500 observations representing people on the
#' following 8 variables.
#' \describe{
#'   \item{year}{Year the data was collected.}
#'   \item{state}{State where person resides.}
#'   \item{city}{City.}
#'   \item{age}{Age of the person.}
#'   \item{sex}{Gender.}
#'   \item{race}{Ethnicity.}
#'   \item{marital_status}{Marital status.}
#'   \item{personal_income}{Personal income.}
#'   }
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(cle_sac, aes(x = personal_income)) +
#'   geom_histogram(binwidth = 20000) +
#'   facet_wrap(~city)
#'
"cle_sac"
tessington/qsci381 documentation built on Sept. 26, 2020, 12:40 p.m.