split_data | R Documentation |
Split data into training and test sets, optionally standardizing by training set centers and standard deviations
split_data(data, test.id = NULL, train.id = NULL, standardize = FALSE)
data |
data frame with rows as samples, columns as features |
test.id |
integer vector of indices for test set. If |
train.id |
integer vector of indices for training set. If |
standardize |
logical; if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.