Description Usage Arguments Examples
Split a dataset into training and testing sets based on a training/testing percentage
1 |
dat |
A data.frame or matrix that you want to split into training/testing sets. It is assumed that each row is a separate observation |
p.train |
Numeric. A number between 0 and 1 dictating what percentage of the data will be put in the training set |
sort |
Logical. Whether you want the training/testing sets to be sorted in the same order as the original data. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.