Learn R Programming

LilRhino (version 1.2.2)

Cross_val_maker: For Creating a test and train set from a whole set

Description

for making one dataset into two (test and train)

Usage

Cross_val_maker(data, alpha)

Arguments

data

matrix of data you want to split

alpha

the percent of data to split

Value

returns a list with accessable with the '$' sign. Test and Train are labeled as such.

Examples

Run this code
# NOT RUN {
dat <- Cross_val_maker(iris, .1)
train <- dat$Train
test <- dat$Test
# }

Run the code above in your browser using DataLab