Skip to content
Prev 75521 / 398502 Next

How to add decision trees into a list?

You have not created a list to add trees (not 'decision trees' from rpart, 
BTW) to.  You need something like

collection <- vector("list", 5)
collection[[1]] <- fit
...

Reading ?c should illuminate your mistake: note that 'fit' is a list (and 
so already a vector).
On Sun, 14 Aug 2005, Martin Lam wrote:

            
No, just reading the basic documentation.