Description Usage Arguments Value
Assign observations to a terminal node.
1 2 3 4 5 6 7 8 9 10 | assign_node(object, newdata, na.action, ...)
## S3 method for class 'rpart'
assign_node(object, newdata, na.action = na.rpart, ...)
## S3 method for class 'BinaryTree'
assign_node(object, newdata, ...)
## S3 method for class 'mertree'
assign_node(object, newdata, ...)
|
object |
An object that inherits from class |
newdata |
An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. |
na.action |
The default action deletes all observations for which the response is missing, but keeps those in which one or more predictors are missing. |
... |
Additional optional arguments. At present, no optional arguments are used. |
A numeric vector containing the terminal node each observation belongs to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.