powered by
Based on the specifications in the data dictionary, transforms all categorical columns to factor.
transf_factor(data, study, release = "latest")
A tibble with the transformed data.
tibble. The data to be transformed. Columns are expected to be in the data dictionary. If not, they will be skipped.
character. NBDC study (One of "abcd" or "hbcd".
"abcd"
"hbcd"
character. Release version (Default: "latest").
"latest"
if (FALSE) { transf_factor(data, study = "abcd") }
Run the code above in your browser using DataLab