flag_names | R Documentation |
Get names of imputation flag variables
flag_names(vars, flag = "pimp.", waves = 1:12, year = NA)
vars |
Character vector of variable names |
flag |
The text to use when creating the names of flag variables. If
not baseline, then "qx" will be prepended to |
waves |
A numeric vector indicating any survey waves beyond baseline for
which variable names should be looked for in |
Character vector of names for the imputation flag variables corresponding to vars
vars <- c("bob", "q4bob", "q8bob", "jim", "q4jim")
flag_names(vars)
flag_names(vars, waves = 4) # q8 vars treated like baseline because 8 not in waves
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.