R/data.R

#' Clothes opinions data
#'
#' This is a fake data set used to show how to work with the xlr package.
#'
#' @format ## `clothes_opinions`
#' A data frame with 1000 rows and 20 variables.
#' \describe{
#'  \item{weight}{Fake survey weights}
#'  \item{group}{A grouping variable}
#'  \item{gender}{A character vector for gender}
#'  \item{gender2}{A haven labelled vector for gender}
#'  \item{age}{A continuous age variable}
#'  \item{age_group}{A character vector for grouped age, generated from `age`}
#'  \item{Q1_1}{The first column in a question block asking whether pants are good to wear. Likert scale.}
#'  \item{Q1_2}{The second column in a question block asking whether shirts are good to wear. Likert scale.}
#'  \item{Q1_3}{The third column in a question block asking whether shoes are good to wear. Likert scale.}
#'  \item{Q1_4}{The forth column in a question block asking whether pants are good to wear. Likert scale.
#'              This column is intentionally has no label.}
#'  \item{Q2_1,2,3,4,5,6}{Multiple response columns. Question asking what is your favourite colour to wear.}
#'  \item{Q3_1,2,3}{Multiple response columns. Question asking what is your favourite jewellery to wear.}
#'  \item{Q3_other}{The other column for question 3}
#'
#' }
"clothes_opinions"

Try the xlr package in your browser

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

xlr documentation built on April 3, 2025, 6:07 p.m.