powered by
Tries to 'smartly' convert factor and character vectors to numeric.
convertToNumeric(vector, byFactorLabel = FALSE)
The converted vector.
The vector to convert.
When converting factors, whether to do this by their label value (TRUE) or their level value (FALSE).
TRUE
FALSE
ufs::convertToNumeric(as.character(1:8));
Run the code above in your browser using DataLab