convertToNumeric: Conveniently convert vectors to numeric

Description Usage Arguments Value Examples

Description

Tries to 'smartly' convert factor and character vectors to numeric.

Usage

1
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.

Examples

1

Matherion/ufs documentation built on May 17, 2019, 12:49 p.m.