emptyTheseVariables: Set variables to 'NA'.

View source: R/emptyTheseVariables.R

emptyTheseVariablesR Documentation

Set variables to NA.

Description

Set all values within one or multiple variables to NA.

Usage

emptyTheseVariables(GADSdat, vars, label_suffix = "")

Arguments

GADSdat

A GADSdat object.

vars

Character vector of variable names which should be set to NA.

label_suffix

Suffix added to variable labels for the affected variables in the GADSdat.

Value

Returns the recoded GADSdat.

Examples

# empty multiple variables
pisa2 <- emptyTheseVariables(pisa, vars = c("idstud", "idschool"))

eatGADS documentation built on Oct. 9, 2024, 5:09 p.m.