Learn R Programming

dataquieR (version 2.1.0)

util_as_numeric: Convert factors to label-corresponding numeric values

Description

Converts a vector factor aware of numeric values not being scrambled.

Usage

util_as_numeric(v, warn)

Value

the converted vector

Arguments

v

the vector

warn

if not missing: character with error message stating conversion error