View source: R/Personal_Functions.R
Cross_val_maker | R Documentation |
for making one dataset into two (test and train)
Cross_val_maker(data, alpha)
data |
matrix of data you want to split |
alpha |
the percent of data to split |
returns a list with accessable with the '$' sign. Test and Train are labeled as such.
Travis Barton
dat <- Cross_val_maker(iris, .1) train <- dat$Train test <- dat$Test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.