[R] tree class in R?

Mulholland, Tom Tom.Mulholland at dpi.wa.gov.au
Mon Dec 6 04:24:45 CET 2004


Have you had a look at the rpart package? If you haven't installed it it may be worth doing so. Then you can type

require(rpart)
?rpart.object

Tom

> -----Original Message-----
> From: DFARRAR [mailto:DFARRAR at vt.edu]
> Sent: Monday, 6 December 2004 11:09 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] tree class in R?
> 
> 
> I am trying to store a couple numbers for each partition, in 
> a subset of the 
> partitions 
> of my data set.  Of course, one can accomplish this using a 
> binary tree.  (The 
> first split is on 
> inclusion/exclusion of the first object, and so on.)  I can 
> probably simulate 
> a tree using 
> vectors.  (One vector gives the index of left child node, 
> another the index of 
> the right child node.)
> However, it seems like there must be a useful class 
> associated with the 
> clustering 
> or recursive partitioning procedures, perhaps not out there 
> for everyone to 
> see.  I poked around
> on the R page and didn't see anything that clearly met my 
> needs very directly.
>  I hope I would not 
> have to learn recursive partitioning in R to find what I need.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list