View source: R/emptyTheseVariables.R
emptyTheseVariables | R Documentation |
NA
.Set all values within one or multiple variables to NA
.
emptyTheseVariables(GADSdat, vars, label_suffix = "")
GADSdat |
A |
vars |
Character vector of variable names which should be set to |
label_suffix |
Suffix added to variable labels for the affected variables in the |
Returns the recoded GADSdat
.
# empty multiple variables
pisa2 <- emptyTheseVariables(pisa, vars = c("idstud", "idschool"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.