[R] Classification tree data structure

From: Hades <hades_at_aurix.plus.com>
Date: Tue 18 Oct 2005 - 23:22:05 EST

Hi there,

I am growing classification trees using the 'tree' package add-on to R.

I would like to convert the 'R' output to the SAS format used by Salford Systems' commercial CART software in order to interface with some other software.

My question is:
How can I parse the R tree data structure in order to infer the tree structure? The 'tree' class has a member '$frame' which gives the splits at each node, but as far as I can see does not specify the daughter nodes. Is this information accessible through the interface to class 'tree' or do I need to dive into the C code?

Alternatively, is there an existing add-on which does this? I gather functions exist to read SAS code but I haven't seen anything which writes it.

Thanks in advance,


R-help@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 Received on Tue Oct 18 23:33:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:45 EST