C_hss_recode_na: Recode values to NA

View source: R/C_hss_recode_na.R

C_hss_recode_naR Documentation

Recode values to NA

Description

In the exported HSS datafile values are coded as 0 even when that particular question was skipped for a respondent. In those cases NA values are expected. This function recodes 0 values to NA where appropriate. Note that currently the variables which are recoded are hard-coded into the function

Usage

C_hss_recode_na(dat)

Arguments

dat

The dataframe with HSS survey data for which you want to recode

Value

Returns a dataframe with recoded values


RenRMT/hsstools documentation built on April 14, 2025, 7:10 p.m.