Hi John,
I'm not familiar with any such function either. However, a handy trick
for doing this sort of thing is changing the branch lengths of
descendant nodes to zero and using the ape function di2multi to
collapse those edges, creating a polytomy.
Now, it isn't clear to me from your email
Hi Liam and David,
Thanks for the code! It will be very useful for the trees I'm working with. Two
clades are large, and I need to collapse them for diversitree.
Best,
John
John S. S. Denton
Ph.D. Candidate
Department of Ichthyology and Richard Gilder Graduate School
American Museum of
Hi folks,
I'd like to collapse the descendants of a node, identified using something like
node - mrca(tree)[A, B]. I did not see a function in ape, geiger, phyloch,
or picante to do something like collapse.descendants(node). Is there a package
with a function like this?
Thanks!
~John
John