Skip to contents

Determine work-from-home (WFH) status for persons based on employment and telework codes. Use to classify survey respondents as WFH for analysis and reporting.

Usage

get_is_wfh(per_df, codebook)

Arguments

per_df

data.frame. Person-level data.

codebook

data.frame. Codebook with variable and label columns.

Value

logical vector. TRUE if person is WFH, FALSE otherwise.

Details

  • Uses codebook to identify employment and telework codes for WFH.

  • Returns logical vector indicating WFH status for each person.

  • Assumes valid person data and codebook; errors if missing.

Settings

None.

See also

  • scripts/weighting/get_is_wfh.R

Examples

## Not run:
get_is_wfh(per_df, codebook)
#> Error: object 'per_df' not found
## End(Not run)