Description Usage Arguments Value Examples
bin.rpart relies on rpart
function to split numerical values into different nodes. According to the
tree-structure splits generated form rpart, bin.rpart further
divides the numerical values into different bins, and record the cut points.
The usage of bin.rpart is similar to rpart, except that the
argument of control in rpart is named as rcontrol in
bin.rpart
1 2 |
formula |
The formula for rpart |
data |
The data frame used for binning |
rcontrol |
The arguments passed into |
n.group |
Number of acceptable binning groups. It can be NULL, a single number (e.g., 5), or a vector (e.g., 3:7). If the value is NULL, it returns the output with the default rpart.control settings. If the n.group is a numeric value, it will change the cp value within rpart.control automatically, until it gets the desirable number of groups |
... |
All other arguments that can be passed to |
The cut points (cut.points) and bins.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.