Returns full assessment data for a single assessment_id as a named list.
Some of the elements within the top-level named list (e.g. taxon, conservation actions)
contains nested lists of data.
Usage
assessment_data(api, assessment_id)
Arguments
- api
An {httr2}
response object created with init_api()
.
- assessment_id
Integer. A single Red List assessment_id.
Value
Returns an unprocessed named list of assessment data for a single assessment_id.
The raw JSON from the assessment endpoint has been coerced to a list but is
otherwise an exact representation of the response from the assessment endpoint.
Examples
if (FALSE) { # \dontrun{
assessment_data(api, assessment_id = 266696959)
} # }