Handles missing values in an "rpart" object.

na.rpart(x)

Arguments

x

a model frame.

Details

Default function that handles missing values when calling the function rpart.

It omits cases where part of the response is missing or all the explanatory variables are missing.