ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

Added `internodes` and `is_internode` functions #112

Closed zachary-foster closed 6 years ago

zachary-foster commented 6 years ago

This has been a function I wanted to add for a while. It is useful for removing uninformative taxa from large trees for visualization. pretty simple though. Just self$n_subtaxa_1() == 1 & self$n_supertaxa_1() == 1 plus a bunch a code copied from is_root/roots

zachary-foster commented 6 years ago

I would be open to a different name if you have any ideas that you like better

sckott commented 6 years ago

Sounds good to me. I haven't thought a whole lot about this. Does seem useful.