rl_family | R Documentation |
Retrieve species assessments by taxonomic family.
If family_name = NULL
, it returns a list of available families.
If family_name
is provided, it retrieves assessments for species in the specified family.
rl_family(
family_name = NULL,
year_published = NULL,
latest = NULL,
scope_code = NULL,
page = 1
)
family_name |
Character. The family name (e.g., "Felidae").
Use |
year_published |
Optional. Single or numeric vector of years to filter assessments by publication year. |
latest |
Optional. Logical. If |
scope_code |
Optional. Integer One or more scope codes to filter assessments. |
page |
Optional. Integer vector. Specify one or more page numbers to fetch.
If |
A tibble (class tbl_df
, tbl
, data.frame
) where each column represents a unique API response JSON key.
If family_name = NULL
, the tibble contains available family names.
If family_name
is provided, the tibble contains assessment data for the specified family, including taxon details,
red list category, year, and other relevant metadata.
## Not run:
# List all available families
rl_family()
# Get assessments for Felidae family
rl_family(family_name = "Felidae")
# Get latest Canidae assessments published from 2019 to 2022
rl_family(
family_name = "Canidae",
year_published = 2019:2022,
latest = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.