Description Usage Arguments Value Examples
View source: R/create-train-test.R
Create Train/Test Datasets for Modeling
1 | create_train_test(df, train_split)
|
df |
dataframe to split for modeling |
train_split |
float between 0.1 - 0.9, determines size of training data |
list containing two dataframes
1 2 3 | data <- create_train_test(iris, 0.7)
training_data <- data$train
testing_data <- data$test
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.