stringAsNumeric: Transform string to numeric.

View source: R/stringsAsNumeric.R

stringAsNumericR Documentation

Transform string to numeric.

Description

Transform a string variable within a GADSdat or all_GADSdat object to a numeric variable.

Usage

stringAsNumeric(GADSdat, varName)

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.

Value

Returns the GADSdat object with with the changed variable.


eatGADS documentation built on Oct. 9, 2024, 5:09 p.m.