ropensci / taxa

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

Make `subset` option accept NSE like `filter_taxa` #52

Closed zachary-foster closed 7 years ago

zachary-foster commented 7 years ago

All the functions that have the subset option return values per-taxon. The same code that filter_taxa uses to parse NSE should work here too. Let you do stuff like:

supertaxa(ex_taxmap, taxon_ranks == "species")

instead of

supertaxa(ex_taxmap, ex_taxmap$taxon_ranks() == "species")