na.tree.replace | R Documentation |
Adds a new level called "NA"
to any discrete predictor in
a data frame that contains NA
s. Stops if any continuous
predictor contains an NA
.
na.tree.replace(frame)
frame |
data frame used to grow a tree. |
This function is used via the na.action
argument to tree
.
data frame such that a new level named "NA"
is added to
any discrete predictor in frame
with NA
s.
tree
, na.omit
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.