label_respondents: Label respondents

label_respondentsR Documentation

Label respondents

Description

This function nerated level label combinations for each respondent

Usage

label_respondents(
  n_obs,
  cluster_labels = names(n_obs),
  add_last_level = FALSE,
  apply_labels = TRUE
)

Arguments

n_obs

list with the number of elements per level

cluster_labels

character vector with the names of each cluster level

add_last_level

if 'TRUE' (not default), adds the last level to the output table

apply_labels

if 'TRUE', applies labels (column names) to data cells

Value

Data frame with the combinations of IDs from all levels


tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.