Cross_val_maker {LilRhino}R Documentation

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.

Author(s)

Travis Barton

Examples

dat <- Cross_val_maker(iris, .1)
train <- dat$Train
test <- dat$Test

[Package LilRhino version 1.2.2 Index]