ropensci / taxadb

:package: Taxonomic Database
https://docs.ropensci.org/taxadb
Other
43 stars 13 forks source link

Function interface -- better function names etc #39

Closed cboettig closed 5 years ago

cboettig commented 5 years ago

Time to revisit and solidify the user interface for the package.

input acceptedNameUsage synonym acceptedNameUsageID  
spatula cyanoptera Spatula cyanoptera Anas cyanoptera IUCN:22680233  
antrostomus vociferus Antrostomus vociferus Caprimulgus vociferus IUCN:22736393  
antrostomus arizonae Antrostomus arizonae Caprimulgus vociferus IUCN:22736398  
antrostomus arizonae Antrostomus arizonae Caprimulgus arizonae IUCN:22736398  
trochilid NA NA NA

It's not entirely clear to me that this wider format is better format than filtering the original dwc format on the accepted ids, e.g:

scientificName taxonomicStatus acceptedNameUsageID taxonRank taxonID
Spatula cyanoptera accepted IUCN:22680233 species IUCN:22680233
Antigone canadensis accepted IUCN:22692078 species IUCN:22692078
Antrostomus vociferus accepted IUCN:22736393 species IUCN:22736393
Antrostomus arizonae accepted IUCN:22736398 species IUCN:22736398
Anas cyanoptera synonym IUCN:22680233 species NA
Grus canadensis synonym IUCN:22692078 species NA
Caprimulgus vociferus synonym IUCN:22736393 species NA
Caprimulgus vociferus synonym IUCN:22736398 species NA
Caprimulgus arizonae synonym IUCN:22736398 species NA