R/process_datasets.R

#' A sample mortality data
#'
#' A data extract takes from the CDC Wonder database.
#'
#' @format A data frame with 85 rows of 3 columns representing the US population
#' at mulit-year different age groups with which we use to make a life table.
#' This data is from the year 2018
#' \describe{
#'   \item{age_group}{Categorical variable identifying each age group}
#'   \item{deaths}{the mid-year number of deaths in each age group}
#'   \item{population}{the US population of each age group}
#' }
#' @source <https://wonder.cdc.gov>
"mortality"

#' A sample mortality data
#'
#' A data extract taken from the CDC Wonder database.
#'
#' @format A data frame with 85 rows of 3 columns representing the deaths and US
#' population at each single-year age group with which we can use to make a life table.
#' This data is from the year 2016.
#'
#' \describe{
#'   \item{age_group}{Categorical variable identifying each age group}
#'   \item{deaths}{the mid-year number of deaths in each age group}
#'   \item{population}{the US population of each age group}
#' }
#' @source <https://wonder.cdc.gov/ucd-icd10.html>
"mortality2"

#' A sample mortality data
#'
#' A data extract taken from the CDC Wonder database.
#'
#' @format A data frame with 170 rows of 4 columns representing the deaths and US
#' population at each single-year age group for each sex with which we can use to make a life table.
#' This data is from the year 2016.
#'
#' \describe{
#'   \item{age_group}{Categorical variable identifying each age group}
#'   \item{deaths}{the mid-year number of deaths in each age group}
#'   \item{population}{the US population of each age group}
#'   \item{gender}{a categroical variable grouping the data into male and female}
#' }
#' @source <https://wonder.cdc.gov
"mortality3"

Try the actLifer package in your browser

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

actLifer documentation built on Nov. 17, 2023, 1:06 a.m.