Learn R Programming

genvar (version 0.0.2.0)

destring: convert a variable with string type into a numeric value

Description

convert a variable with string type into a numeric value

Usage

destring(varlist)

Arguments

varlist

variables to convert, in the form "var1 var2 var3" or, if a single variable, an unquoted variable will work as well (i.e. var1).

Value

returns NULL, invisibly

Examples

Run this code
# NOT RUN {
use(cars, clear=TRUE)
tostring(speed)
listif()
describe()
destring(speed)
listif()
describe()
# }

Run the code above in your browser using DataLab