singlechoice_factor | R Documentation |
Converts the numeric values returned from REDCap to factors. This function also applies labels to the variable itself.
singlechoice_factor(data, metadata, replace = FALSE, append = "_factor")
data |
the data.frame to modify |
metadata |
metadata/datadictionary |
replace |
whether to overwrite the existing data . |
append |
text to append to the variable name if not overwriting |
dataframe with factor variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.