powered by
for making one dataset into two (test and train)
Cross_val_maker(data, alpha)
matrix of data you want to split
the percent of data to split
returns a list with accessable with the '$' sign. Test and Train are labeled as such.
# NOT RUN { dat <- Cross_val_maker(iris, .1) train <- dat$Train test <- dat$Test # }
Run the code above in your browser using DataLab