regressoR (version 1.1.7)

partition_code: partition_code

Description

creates the partition code for testing and learning data.

Usage

partition_code(data = "datos", p = 50, variable = NULL,
  semilla = 5, perm.semilla = FALSE)

Arguments

data

the name of the current data.

p

the percentage of data for the learning data.

variable

the name of the variable to be predicted.

semilla

a number with the random seed.

perm.semilla

a logical value indicating whether the random seed should be used.

Examples

Run this code
# NOT RUN {
x <- partition_code('iris', 75, 'Species', 555, TRUE)
exe(x)
head(datos.aprendizaje)
head(datos.prueba)

# }

Run the code above in your browser using DataCamp Workspace