Rev 6656 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
model.frame.rpart <- function(formula, ...){m <- formula$modelif (!is.null(m)) return(m)oc <- formula$callif (substring(deparse(oc[[1L]]), 1L, 7L) == "predict") {m <- eval(oc$newdata)if (is.null(attr(m, "terms"))) {object <- eval(oc$object)m <- model.frame(object$terms, m, na.rpart)}return(m)}while(!deparse(oc[[1L]]) %in% c("rpart", "rpart::rpart", "rpart:::rpart"))oc <- eval(oc[[2L]])$calloc$subset <- names(formula$where)oc$method <- formula$methodeval(oc)}