split_data | R Documentation |
Split data into train and test sets.
split_data(data, prop = 0.7)
data |
A data frame. |
prop |
The proportion of rows to assign to the training set. |
A list with two data frames, train
and test
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.