R: as.factor and as_factor
I looked at as.factor
(R base https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/factor) and as_factor
(tidyverse: https://haven.tidyverse.org/reference/as_factor.html) to see if they should be included in the Function Library.
It seems to me that they should be converted to SDTL commands, rather than handled as SDTL functions. They both have the option of creating value labels, which is not a good fit for the Function Library.
I recommend that you implement them using the SetDataType
and SetValueLabels
commands.
What do you think?