powered by
creates the partition code for testing and learning data.
partition_code(data = "datos", p = 50, variable = NULL, semilla = 5, perm.semilla = FALSE)
the name of the current data.
the percentage of data for the learning data.
the name of the variable to be predicted.
a number with the random seed.
a logical value indicating whether the random seed should be used.
# 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 DataLab