R/utils-transform.R
to_factor.Rd
This function converts all variables in the dataset to factors, except those specified in the exclude parameter.
exclude
to_factor(data, dic, exclude = NULL)
Data frame containing the REDCap data.
Data frame containing the REDCap dictionary.
Character vector specifying the names of variables that should not be converted to factors. If NULL, all variables will be converted.
NULL