rl_orders | R Documentation |
Retrieve species assessments by taxonomic order.
If order_name = NULL
, it returns a list of available orders.
If order_name
is provided, it retrieves assessments for species in the specified order.
rl_orders(
order_name = NULL,
year_published = NULL,
latest = NULL,
scope_code = NULL,
page = 1
)
order_name |
Character. The order name (e.g., "Carnivora").
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 order_name = NULL
, the tibble contains available taxonomic orders with a column for order names.
If order_name
is provided, the tibble contains assessment data for the specified order, including year, taxon details, criteria,
and other relevant metadata.
## Not run:
# List all available orders
rl_orders()
# Get assessments for Carnivora order
rl_orders(order_name = "Carnivora")
# Get latest Primates assessments published in 2022
rl_orders(
order_name = "Primates",
year_published = 2022,
latest = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.