Description Usage Arguments Value
View source: R/createCvTrainTestSets.R
Helper function for createCvTrainTestSets()
1 | splitDataIntoKfolds(df = NULL, k = 10, return.data = T, show.warnings = T)
|
df |
A dataframe of observations as rows and features as columns |
k |
Number of folds to split the data into |
return.data |
Return the split dataframe or only indexes |
show.warnings |
Show warnings? |
A list of length(k), containing a sublists of train/test data or indexes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.