[R] rpart leaves

White.Denis@epamail.epa.gov White.Denis at epamail.epa.gov
Tue May 28 02:34:02 CEST 2002


> Is it possible to manually specify how many leaves I want for a tree
> fitted by rpart(), or tree()?

prune.Rpart in package maptree has argument best and acts like
prune.tree.  prune.rpart in package rpart does not have the argument.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list