Closed jtmiller28 closed 2 years ago
Thanks for the report, I will take a closer look soon. I reproduced the issue:
taxize::gnr_resolve(sci = "Bombus cascadensis", data_source_ids = 202, preferred_data_sources = 202, best_match_only = TRUE, canonical = TRUE, resolve_once = TRUE)
#> # A tibble: 1 × 5
#> user_supplied_name submitted_name data_source_title score matched_name2
#> * <chr> <chr> <chr> <dbl> <chr>
#> 1 Bombus cascadensis Bombus cascadensis Discover Life Bee S… 0.75 Bombus
Created on 2022-03-09 by the reprex package (v2.0.1)
It looks like it only shows the genus because there is no "Bombus cascadensis" in the database:
https://www.discoverlife.org/mp/20q?guide=Bee_genera
Apparently, that's what the GNR API returns in that case:
I am not sure it would be a good idea to change this output on the taxize
side of things, since the function is primarily an interface for the GNR service and that is what is returned by that service. Although we can explore that option if there is demand for it.
That makes sense, I agree it is more on the user side for interpretation. Sorry for forgetting to close the issue! Thanks for clearing it up!
When I run gnr_resolve() there are some rows under matched_name2 that include only the genus and not the specificEpithet. I am unsure why this is, shouldn't the name be completely dropped when it isn't defined out to the specificEpithet level? Example Output in Image Below:
Thank you for your time!