I believe chambers book has an example using S4 classes. which isnt much help for a beginner.
you can do it the old school way. build it by hand with one vector of pointers and another data structure of leaf nodes. there is nothing magical about a tree. you can build one in basic or fortran. painful but good for ur character. On Jun 27, 2012 10:09 PM, "Peppino" <giuseppel...@hotmail.com> wrote: > Hi I am new with R > > I Have to build a binary tree with R. I'm very confused was wondering if > anyone had any R sample code they would share. I've come across a lot of > C++ > code(nothing in R) and this is not helping. > > Any bady can help me? > > Bye > > Giuseppe > > -- > View this message in context: > http://r.789695.n4.nabble.com/building-binary-tree-tp4634592.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.