Description Usage Arguments Value
View source: R/PreProcessing.R
This function arranges the data in the required format and displays error messages.
1 2 3 4 5 6 7 8 9 10 | preProcess(
data,
x,
y,
numStop = 5,
fold = 5,
max.depth = NULL,
max.leaves = NULL,
na.rm = TRUE
)
|
data |
|
x |
Column input indexes in data. |
y |
Column output indexes in data. |
numStop |
Minimum number of observations in a node for a split to be attempted. |
fold |
Set of number of folds in which the dataset to apply cross-validation during the pruning is divided. |
max.depth |
Depth of the tree. |
max.leaves |
Maximum number of leaf nodes. |
na.rm |
|
It returns a data.frame
in the required format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.