Learn R Programming

genvar (version 0.0.1.4)

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, either in the form "var1 var2 var3" or in the form ~var1+var2+var3.

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