emmanuelparadis / ape

Analysis of Phylogenetics and Evolution
https://emmanuelparadis.github.io/
GNU General Public License v2.0
53 stars 11 forks source link

make drop.tip and keep.tip generic #66

Closed KlausVigo closed 1 year ago

KlausVigo commented 1 year ago

Hello @emmanuelparadis and @liamrevell, here is some code which should make drop.tip and keep.tip generic. I realized Liam had a function drop.tip.multiPhylo, but I think the changes would not harm this. drop.tip.multiSimmap should also work calling drop.tip afterwards, but I think this needs some testing. drop.tip.multiPhylo in phytools could be dropped later on when ape is on CRAN. Have nice holidays, Klaus

emmanuelparadis commented 1 year ago

Hi @KlausVigo , You sent this code in Oct but I forgot to push. Sorry! It's done now. The methods are not exported, but I can add them in the NAMESPACE if you prefer. Cheers, Emmanuel