Description Usage Arguments Value Examples
Tries to 'smartly' convert factor and character vectors to numeric.
1 | convertToNumeric(vector, byFactorLabel = FALSE)
|
vector |
The vector to convert. |
byFactorLabel |
When converting factors, whether to do this
by their label value ( |
The converted vector.
1 | ufs::convertToNumeric(as.character(1:8));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.