stringAsNumeric: Transform string to numeric.
Description
Transform a string variable within a GADSdat
or all_GADSdat
object to a numeric variable.
Usage
stringAsNumeric(GADSdat, varName)
Value
Returns the GADSdat
object with with the changed variable.
Arguments
- GADSdat
GADSdat
object imported via eatGADS
.
- varName
Character string of a variable name.
Details
Applied to a GADSdat
or all_GADSdat
object, this function uses asNumericIfPossible
to
change the variable class and changes the format
column in the meta data.