Re: [R] Convert filogenetic tree to binary matrix

From: Ben Bolker <>
Date: Thu, 28 Apr 2011 14:34:56 +0000

vanderlei52 <vanderleidebastianimach <at>> 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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 28 Apr 2011 - 14:56:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 19:40:35 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive