util_as_numeric function

Convert factors to label-corresponding numeric values

Convert factors to label-corresponding numeric values

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

util_as_numeric(v, warn)

Arguments

  • v: the vector
  • warn: if not missing: character with error message stating conversion error

Returns

the converted vector

  • Maintainer: Stephan Struckmann
  • License: BSD_2_clause + file LICENSE
  • Last published: 2025-03-05