factor_format {rdhs} | R Documentation |
reformat haven and labelled read ins to have no factors or labels
Description
reformat haven and labelled read ins to have no factors or labels
Usage
factor_format(res, reformat = FALSE, all_lower = TRUE)
Arguments
res |
dataset to be formatted |
reformat |
Boolean whether to remove all factors and labels and just return the unfactored data. Default = FALSE |
all_lower |
Logical indicating whether all value labels should be lower case. Default to 'TRUE'. |
Value
list with the formatted dataset and the code descriptions
[Package rdhs version 0.8.1 Index]