regressoR (version 1.1.8)

code_transf: code_transf

Description

generate code to transform data.

Usage

code_transf(variable, new.type, d.o = "datos.originales", d = "datos")

Arguments

variable

the name of the variable to be converted.

new.type

the new type of the variable. Can be categorical, numerical or disjunctive. ('categorico', 'numerico', 'disyuntivo')

d.o

the name of the original data.

d

the name of the current data.

Examples

Run this code
# NOT RUN {
iris2 <- iris
x <-code_transf('Species', 'disyuntivo', 'iris', 'iris2')
exe(x)
head(iris2)

# }

Run the code above in your browser using DataCamp Workspace