convertToNumeric

0th

Percentile

Conveniently convert vectors to numeric

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 (TRUE) or their level value (FALSE).

Value

The converted vector.

Aliases
  • convertToNumeric
Examples
# NOT RUN {
ufs::convertToNumeric(as.character(1:8));
# }
Documentation reproduced from package ufs, version 0.2.0, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.