convertToNumeric {limonaid} | R Documentation |
Conveniently convert vectors to numeric
Description
Tries to 'smartly' convert factor and character vectors to numeric.
Usage
convertToNumeric(vector, byFactorLabel = FALSE)
Arguments
vector |
The vector to convert. |
byFactorLabel |
When converting factors, whether to do this
by their label value ( |
Value
The converted vector.
Examples
convertToNumeric(as.character(1:8));
[Package limonaid version 0.1.5 Index]