train_test_split: Train Test Split

Description Usage Arguments Examples

Description

This function separates the given data set as train and test dataaccording to the determined seed value and ratio. .

Usage

1
train_test_split(data, seed_value = 1, ratio)

Arguments

data

The data set which is intended to be seperated into train and test should be specified.

seed_value

In order to ensure repeatability, random number must be assigned in a particular order. The seed value must be specified in order to perform the repeatability process.

ratio

The percentage of train data should be specified.

Examples

1
2
3
4
5
random_column <- data.frame(runif(100, min = 0, max = 1000))
colnames(random_column) = "random_column"
datasets <- train_test_split(random_column, seed_value = 1, ratio = 0.70)
train = datasets$train
test = datasets$test

ayhandis/creditR documentation built on May 9, 2019, 8:41 a.m.