Re: [R-sig-phylo] Drop terminal branches

2013-08-13 Thread Liam J. Revell
Hi Nick. drop.tip(...,trim.internal=FALSE) almost does this, but it will not allow you to trim all the leaves in the tree. Why don't you try the attached function, which I'm calling drop.leaves. It does what you want, I think, and should be straightforward to figure out. The tip labels on

Re: [R-sig-phylo] Drop terminal branches

2013-08-13 Thread Nicholas Crouch
Liam, That works fantastically, thanks very much! Nick On Tue, Aug 13, 2013 at 10:39 AM, Liam J. Revell liam.rev...@umb.eduwrote: Hi Nick. drop.tip(...,trim.internal=**FALSE) almost does this, but it will not allow you to trim all the leaves in the tree. Why don't you try the attached