Description Usage Arguments Value Note
Split data into a training and a test dataset
1 |
data |
a dataframe that the user would like to split into training and sample sets |
class |
character value of the name of the dependent variable |
p |
the proportion of data to be placed into a training set |
pvalid |
the proportion of data to be placed into the validation set |
A list with the following items:
a data frame of the training values
a data frame of the test values
the row indexes of the original data frame selected to be in the training set
Built on the createDataPartition
function in the caret
package. pvalid
is defined against the records remaining after holding out p for the training set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.