[R] tree() - Tree is too big

Henrik Bengtsson henrikb at braju.com
Sat Jun 9 09:59:38 CEST 2001

I am using tree() in the library tree to learn regression trees. Once in a
while I am getting the error "Tree is too big". From the same data set, but
with randomized subsets I am learning several tree model and in the end of
the day I would like to look at some of the properties across trees.

My problem: I have for loop containing a call to tree(). However, since
tree() returns an error about every 30-50 time due to "Tree is too big" the
execution is stopped. Since each call to tree() takes a long time I would
like to run the  for loop over night. I have tried

  options(error = expression(NULL))

to make [R] ignore the errors, but it seems that tree() doesn't respond to
this. Is this correct? Any other suggestions?


Henrik Bengtsson
h e n r i k b @ b r a j u . c o m

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