Description Usage Arguments Examples
This function separates the given data set as train and test dataaccording to the determined seed value and ratio. .
1 | train_test_split(data, seed_value = 1, ratio)
|
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. |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.