powered by
NA
Set all values within one or multiple variables to NA.
emptyTheseVariables(GADSdat, vars, label_suffix = "")
Returns the recoded GADSdat.
GADSdat
A GADSdat object.
Character vector of variable names which should be set to NA.
Suffix added to variable labels for the affected variables in the GADSdat.
# empty multiple variables pisa2 <- emptyTheseVariables(pisa, vars = c("idstud", "idschool"))
Run the code above in your browser using DataLab