buildModelData: Build Model Data

Description Usage Arguments Value Examples

View source: R/buildModelData.R

Description

Create train, validation and training data from a pool of original class sorted data This function creates a "Model Data" folder and necessary subfolders with and populated them with

Usage

1
2
buildModelData(data.folder = getwd(), trainpercent = 0.85,
  validatepercent = 0.15, testpercent = 0, balanceData = FALSE)

Arguments

data.folder

Top directory that contains "Original" folder. "Model Data" will be added to this directory as well.

trainpercent

Percent of data to add to the training dataset. These three need to add to 1.

validatepercent

Percent of data to add to the validation dataset. These three need to add to 1.

testpercent

Percent of data to add to the test dataset. These three need to add to 1.

balanceData

logical of whether you'd like to balance the training data based on the class with the fewest examples

Value

Produces a random dataset with training, testing, and validation sets

Examples

1
2
3
4
## Not run: 
buildModelData("F:/Adam Cummings/DimecV1/Data")

## End(Not run)

adamkc/DIMEChelper documentation built on Feb. 1, 2020, 12:24 p.m.