This function wraps worrms::wm_name2id_()
so that it returns a data frame
rather than a list.
It also silences "not found" warnings, returning NA
instead.
See also
Other support functions:
datacite_to_eml()
,
get_mvb_term()
Examples
get_aphia_id("Mola mola")
#> # A tibble: 1 × 4
#> name aphia_id aphia_lsid aphia_url
#> <chr> <int> <chr> <chr>
#> 1 Mola mola 127405 urn:lsid:marinespecies.org:taxname:127405 https://www.mari…
get_aphia_id(c("Mola mola", "not_a_name"))
#> # A tibble: 2 × 4
#> name aphia_id aphia_lsid aphia_url
#> <chr> <int> <chr> <chr>
#> 1 Mola mola 127405 urn:lsid:marinespecies.org:taxname:127405 https://www.mar…
#> 2 not_a_name NA NA NA