Description Usage Arguments Value Author(s) Examples
This function splits the data.frame
into a training set and a test set with user defined proportions.
1 |
data |
A well-cleaned |
splits |
A two-element vector with the first element specifying the training proportion and the second being the test proportion. |
random |
If TRUE, uses a random seed so you will get a different training and testing set everytime you run this. If FALSE, the draws are based on the seed (12345678). Default is random = FALSE. |
a list with elements:
train |
the training set |
test |
the test set |
Mokyo Zhou
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.