R/data.R

#' @title Druguse dataset
#' @description The dataset shows data about 13 drugs across 17 age groups.
#' It contains real value-data for statistical porpuses. 
#' 
#' 
#'  
#' 
#' @format data.frame with 17 observations(rows) and 28 variables(columns).
#' \describe{
#'   \item{age}{age}
#'   \item{n}{n}
#'   \item{alcohol.use}{Percentage of those in an age group who used alcohol in the past 12 months}
#'   \item{alcohol.frequency}{Median number of times a user in an age group used alcohol in the past 12 months}
#'   \item{marijuana.use}{Percentage of those in an age group who used marijuana in the past 12 months}
#'   \item{marijuana.frequency}{Median number of times a user in an age group used marijuana in the past 12 months}
#'   \item{cocaine.use}{Percentage of those in an age group who used cocaine in the past 12 months}
#'   \item{cocaine.frequency}{Median number of times a user in an age group used cocaine in the past 12 months}
#'   \item{crack.use}{Percentage of those in an age group who used crack in the past 12 months}
#'   \item{crack.frequency}{Median number of times a user in an age group used crack in the past 12 months}
#'   \item{heroin.use}{Percentage of those in an age group who used heroin in the past 12 months}
#'   \item{heroin.frequency}{Median number of times a user in an age group used heroin in the past 12 months}
#'   \item{hallucinogen.use}{Percentage of those in an age group who used hallucinogens in the past 12 months}
#'   \item{hallucinogen.frequency}{Median number of times a user in an age group used hallucinogens in the past 12 months}
#'   \item{inhalant.use}{Percentage of those in an age group who used inhalants in the past 12 months}
#'   \item{inhalant.frequency}{Median number of times a user in an age group used inhalants in the past 12 months}
#'   \item{pain.releiver.use}{Percentage of those in an age group who used pain relievers in the past 12 months}
#'   \item{pain.releiver.frequency}{Median number of times a user in an age group used pain relievers in the past 12 months}
#'   \item{oxycontin.use}{Percentage of those in an age group who used oxycontin in the past 12 months}
#'   \item{oxycontin.frequency}{Median number of times a user in an age group used oxycontin in the past 12 months}
#'   \item{tranquilizer.use}{Percentage of those in an age group who used tranquilizer in the past 12 months}
#'   \item{tranquilizer.frequency}{Median number of times a user in an age group used tranquilizer in the past 12 months}
#'   \item{stimulant.use}{Percentage of those in an age group who used stimulants in the past 12 months}
#'   \item{stimulant.frequency}{Median number of times a user in an age group used stimulants in the past 12 months}
#'   \item{meth.use}{Percentage of those in an age group who used meth in the past 12 months}
#'   \item{meth.frequency}{Median number of times a user in an age group used meth in the past 12 months}
#'   \item{sedative.use}{Percentage of those in an age group who used sedatives in the past 12 months}
#'   \item{sedative.frequency}{Median number of times a user in an age group used sedatives in the past 12 months}
#' }
#'   
#'   
#' 
#' @source \url{https://github.com/fivethirtyeight/data/tree/master/drug-use-by-age}
"druguse"
unimi-dse/0425048f documentation built on Feb. 19, 2020, 10:43 p.m.