powered by
Detects factors and converts them to compatible metadata/study data.
prep_valuelabels_from_data(resp_vars = colnames(study_data), study_data)
a list with:
VALUE_LABELS: vector of value labels and modified study data
VALUE_LABELS
ModifiedStudyData: study data with factors as integers
ModifiedStudyData
variable names of the variables to fetch the value labels from the data
data.frame the data frame that contains the measurements
if (FALSE) { dataquieR::prep_datatype_from_data(iris) }
Run the code above in your browser using DataLab