Description Usage Arguments Value
View source: R/transformations.R
If the label is categorical, a stratified data split (based on the label variable) is created using the createDataPartition function in the caret-package, based on split proportions defined in configuration. Othervise, a random split is made. A new column is added to the type-set data, which is returned.
1 | create_split(main, set)
|
main |
main data object |
set |
config object |
main data object with data split column added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.