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

View source: R/Personal_Functions.R

Cross_val_makerR 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

Travis-Barton/LilRhino documentation built on May 3, 2022, 3:36 a.m.