R/demographics.R

#' @title Household demographic metadata.
#'
#' @description 
#' Household demographic metadata for households participating in the Customer Journey study.
#' Due to nature of the data, the demographic information is not available for all
#' households.
#'
#' @source 84.51°, Customer Journey study, \url{http://www.8451.com/area51/}
#' @format A data frame with 801 rows and 8 variables
#' \itemize{
#' \item household_id: Uniquely identifies each household
#' \item age: Estimated age range
#' \item income: Household income range
#' \item home_ownership: Homeowner status (Homeowner, Renter, Unknown)
#' \item marital_status: Marital status (Married, Single, Unknown)
#' \item household_size: Size of household up to 5+
#' \item household_comp: Household composition description
#' \item kids_count: Number of children present up to 3+
#' }
#' 
#' @docType data
#' @return \item{demographics}{a tibble}
#' @keywords datasets
#' 
#' @examples
#' \donttest{
#' # full data set
#' demographics
#'
#' # Transaction line items that don't have household metadata
#' require("dplyr")
#' transactions_sample %>%
#'   anti_join(demographics, "household_id")
#' }
#' 
#' @importFrom tibble tibble
"demographics"

Try the completejourney package in your browser

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

completejourney documentation built on Sept. 29, 2019, 1:03 a.m.