
Retrieve harmfulness for taxa from Nordic Microalgae
Source:R/nua_api_functions.R
get_nua_harmfulness.RdThis function retrieves harmfulness information related to algae taxa from the Nordic Microalgae API. It takes a vector of slugs (taxon identifiers) and returns a data frame containing the harmfulness information associated with each taxon. The data includes the provider, label, external ID, and the URL of the external link.
Value
A tibble containing the following columns:
- slug
The slug (identifier) of the taxon.
- provider
The provider of the external link.
- label
The label of the external link.
- external_id
The external ID associated with the external link.
- external_url
The URL of the external link.
- collection
The collection category, which is "Harmful algae blooms" for all rows.
Details
The slugs (taxon identifiers) used in this function can be retrieved using the get_nua_taxa() function,
which returns a data frame with a column for taxon slugs, along with other relevant metadata for each taxon.
See also
https://nordicmicroalgae.org/ for Nordic Microalgae website.
https://nordicmicroalgae.org/api/ for Nordic Microalgae API documentation.
Examples
# \donttest{
# Retrieve external links for a vector of slugs
harmfulness <- get_nua_harmfulness(slug = c("dinophysis-acuta",
"alexandrium-ostenfeldii"),
verbose = FALSE)
print(harmfulness)
#> # A tibble: 11 × 6
#> slug provider label external_id external_url collection
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 dinophysis-acuta IOC IOC H… 109604 https://www… Harmful a…
#> 2 dinophysis-acuta IOC-UNESCO IOC-U… 6 https://tox… Harmful a…
#> 3 dinophysis-acuta IOC-UNESCO IOC-U… 1 https://tox… Harmful a…
#> 4 dinophysis-acuta IOC-UNESCO IOC-U… 5 https://tox… Harmful a…
#> 5 alexandrium-ostenfeldii IOC IOC H… 109712 https://www… Harmful a…
#> 6 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 464 https://tox… Harmful a…
#> 7 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 463 https://tox… Harmful a…
#> 8 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 462 https://tox… Harmful a…
#> 9 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 12 https://tox… Harmful a…
#> 10 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 15 https://tox… Harmful a…
#> 11 alexandrium-ostenfeldii IOC-UNESCO IOC-U… 17 https://tox… Harmful a…
# }