Closed mwpennell closed 9 years ago
Yeah, seems like you could regex for specific epithets once data is pulled down. But of course then you have two different matching algorithms, genus and epithet. Is the genus matching just straight up exact matching? Or any fuzzy matching on genera?
I talked to the admins of the CCDB and they are adding species searching to their API within the very near future. Will wait for this before making any changes or committing to CRAN
The CCDB people now allow querying by species. Added this functionality.
According to the documentation for the API, it appears to only be possible to query for a specific genus and not a specific species. There is some sense to this as the database also performs taxonomic name resolution and returns resolved species names of the form "Genus species Taxonomic authority".
I will look into this.
Of course, we could always create a wrapper function that queries by genus and then subsets after the fact but this seems unnecessary.