allvariables.type.change: Changing a data frame's variable types in bulk

Description Usage Arguments Value Examples

Description

Changing a data frame's variable types in bulk

Usage

1
allvariables.type.change(data, vars.list, data2)

Arguments

data

A data frame

vars.list

A list of pairs (variable.name,variable.type) such as those produced by allvariables.manual.review

data2

A second data frame (optional) from which levels will be pulled and added when coercing a variable into a factor

Value

A modified version of data

Examples

1
2
list_ <- list(c("cyl","factor"),c("am","factor"),c("vs","factor"),c("gear","factor"))
str(allvariables.type.change(mtcars,list_))

ahdxb/data.exploration documentation built on May 11, 2019, 11:31 p.m.