Skip to contents

Get grouping variables for the time use survey data

Usage

get_grouping_vars(strata = NULL)

Arguments

strata

An optional character vector containing names of stratification variables. If supplied, these are added to the activity and location variables to be used for grouping. Default: none.

Value

A character vector of names of grouping variables. These will be 'activity' and 'location' together with any stratification variables (if supplied).

Examples

get_grouping_vars()
#> [1] "activity" "location"
get_grouping_vars(c("sex", "agegr4", "nssec5", "daytype"))
#> [1] "sex"      "agegr4"   "nssec5"   "daytype"  "activity" "location"