Description Usage Arguments Value
View source: R/simulation-lib.R
Split the data randomly into a training and test set. NOT exported to the user
1 | train_test_split(xs, ys, split_prop = 0.5)
|
xs |
Covariates |
ys |
Responses |
split_prop |
Proportion in the training set. Must be between 0 and 1, non-inclusive |
A list with elements
|
Training set of covariates |
|
Test set of covariates |
|
Training set of responses |
|
Test set of responses |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.