regressoR (version 1.1.7)

code_NA: code_NA

Description

creates the code that imputes the NAs data or removes them.

Usage

code_NA(deleteNA = TRUE, d.o = "datos.originales")

Arguments

deleteNA

a logical value indicating whether the NAs have to be eliminated or whether they have to be imputed. If TRUE then the NAs are eliminated, otherwise the data is imputed.

d.o

the name of the original data.

Examples

Run this code
# NOT RUN {
iris2 <- iris
x <- code_NA(TRUE, 'iris2')
exe(x)
x <- code_NA(FALSE, 'iris2')
exe(x)

# }

Run the code above in your browser using DataLab