On 10/28/2009 04:06 AM, Hesen Peng wrote:
Hello everybody,

I'm write a function whose output represents a tree. Can anyone please
recommend me some data structure in R which are good for expressing a
tree? The possible idea I'm having in my mind is to represent the
whole tree as a list in which a sublist (an element to the main list)
contains all its corresponding branches. Is there any simpler way of
doing this? Thank you very much.
Hi Hesen,
This is the approach used in the listBuilder function in the crank package. It may be of use to you.

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to