Preserve all factor levels from REDCap data dictionary in data export
apply_factor_labels(data, meta = NULL)
data
meta
data.frame
Useful links