emmanuelparadis / ape

analysis of phylogenetics and evolution
http://ape-package.ird.fr/
GNU General Public License v2.0
53 stars 11 forks source link

improve keep.tip and drop.tip #90

Closed KlausVigo closed 1 year ago

KlausVigo commented 1 year ago

Hello @emmanuelparadis, this is a small improvement to keep.tip and drop.tip following the discussion with @HedvigS. It allows to use all arguments of drop.tip in keep.tip via the ... argument. It changes the behaviour of drop.tip, which uses node labels if available when subtree = TRUE. I assume this is not likely breaking any code, even though it changes the return values slightly. However currently the node labels returned are not necessarily unique. Kind regards, Klaus