Skip to contents

This function wraps around parse_assessment_data() and returns a list of full assessment data for an arbitrary number of assessment IDs.

Usage

assessment_data_many(api, assessment_ids, wait_time = 0.5)

Arguments

api

An httr2 response object created with init_api().

assessment_ids

Vector. A vector of valid assessment IDs.

wait_time

Time in seconds to wait between API calls. A wait of 0.5 seconds or greater will ensure you won't hit the IUCN Red List API rate limit.

Value

A list of full assessment data. Each element in the list corresponds to a unique assessment_id passed to the function via the argument assessment_ids.

Examples

if (FALSE) { # \dontrun{
assessment_data_many(api, assessment_ids = c(266696959, 152728945), wait_time = 0.5)
} # }