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

Description Usage Arguments Value Author(s) Examples

View source: R/Personal_Functions.R

Description

for making one dataset into two (test and train)

Usage

1

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

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

LilRhino documentation built on Oct. 31, 2019, 4:59 p.m.