Hi Brian,

See bind.tree.

Best,

Emmanuel

Brian Pellerin wrote on 10/01/2012 21:36:
Hello R users,

How do I "grow" a whole new set of leaves onto an existing tree?

### example with random tree
library(ape)
nleaf<-1000                          #Number of leaves on a tree
br<-sample(0:20,2*(nleaf-1),replace=T)#Branch lengths for tree
tr<-rtree(nleaf,br=br)                       #Tree crown


Thanks for your help.

Sincerely,
Brian

_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo


--
Emmanuel Paradis
IRD, Jakarta, Indonesia
http://ape.mpl.ird.fr/

_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo

Reply via email to