ropensci / taxa

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

binomen fxns: fail well when not using lazy helpers #63

Closed sckott closed 7 years ago

sckott commented 7 years ago

moved to requiring users to specify whether they want to specifically address ranks, taxonomic names, or taxonomic ids via the helpers ranks(), nms(), and ids() e.g.,

ex_hierarchy1 %>% pick(ranks(family))
#> <Hierarchy>
#>   no. taxon's:  1 
#>   Poaceae / family / 4479 

right now, fails not very well when you don't use them

ex_hierarchy1 %>% pick(family)
#> <Hierarchy>
#>   Empty hierarchy