[R] Convert filogenetic tree to binary matrix

Ben Bolker bbolker at gmail.com
Thu Apr 28 16:34:56 CEST 2011


vanderlei52 <vanderleidebastianimach <at> yahoo.com.br> writes:

> 
> I need to create a binary matrix with all node of a phylogenetic tree and the
> presence of each taxo in their respective node.
> 

  I would suggest that you try this question on the r-sig-phylo mailing
list instead.  The phylobase package has an ancestors() functions that
could help you put together a solution, but there may well be a quicker,
easier way.

   Ben Bolker



More information about the R-help mailing list