rl_phylum | R Documentation |
Retrieve species assessments by phylum.
If phylum_name = NULL
, it returns a list of available phyla.
If phylum_name
is provided, it retrieves assessments for species in the specified phylum.
rl_phylum(
phylum_name = NULL,
year_published = NULL,
latest = NULL,
scope_code = NULL,
page = 1
)
phylum_name |
Character. The phylum name (e.g., "Chordata").
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 phylum_name = NULL
, the tibble contains available phylum names.
If phylum_name
is provided, the tibble contains assessment data for the specified phylum, year, latest, possibly extincts, and other relevant metadata.
## Not run:
# List all available phyla
rl_phylum()
# Get assessments for species in Chordata phylum
rl_phylum(phylum_name = "Chordata")
# Get latest assessments for Arthropoda published in 2020
rl_phylum(
phylum_name = "Arthropoda",
year_published = 2020,
latest = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.