[R-sig-phylo] Find common ancestor of multiple taxa

2013-05-09 Thread Nicholas Crouch
Hi All, The 'mrca' function in Ape provides a method for finding the common ancestor of a pair of taxa. What I would like have not found is a function where you can pass a (long) list of tips from a phylogeny and find the node which represents the common ancestor to all these tips. Does such a

Re: [R-sig-phylo] Find common ancestor of multiple taxa

2013-05-09 Thread François Michonneau
Hi Nick, You can look into the function MRCA() in the package phylobase, it does what you describe. For instance: library(phylobase) data(geospiza) MRCA(geospiza, 1:5) N21 21 Cheers, -- François On Thu, May 9, 2013 at 11:24 AM, Nicholas Crouch ncro...@uic.edu wrote: Hi All, The

Re: [R-sig-phylo] Find common ancestor of multiple taxa

2013-05-09 Thread Liam J. Revell
This is exactly what findMRCA in phytools does, but I wrote it a while ago so I'm not sure how fast it is - Liam Liam J. Revell, Assistant Professor of Biology University of Massachusetts Boston web: http://faculty.umb.edu/liam.revell/ email: liam.rev...@umb.edu blog: