R/data-sleep_deprivation.R

#' Survey on sleep deprivation and transportation workers
#'
#' The National Sleep Foundation conducted a survey on the sleep habits of
#' randomly sampled transportation workers and a control sample of
#' non-transportation workers.
#'
#'
#' @name sleep_deprivation
#' @docType data
#' @format A tibble with 1087 observations on the following 2 variables.
#' \describe{
#'   \item{sleep}{a factor with levels \code{<6}, \code{6-8}, and \code{>8}}
#'   \item{profession}{a factor with levels \code{bus / taxi / limo drivers},
#'   \code{control}, \code{pilots}, \code{train operators}, \code{truck drivers}}
#'   }
#' @source National Sleep Foundation, 2012 Sleep in America Poll:
#' Transportation Workers' Sleep, 2012.
#' \url{https://sleepfoundation.org/sleep-polls-data/sleep-in-america-poll/2012-transportation-workers-and-sleep}
#' @keywords datasets
#' @examples
#'
#' sleep_deprivation
#'
"sleep_deprivation"
OpenIntroStat/openintro-r-package documentation built on Aug. 12, 2019, 5:19 a.m.