
List organizations for a download
Source:R/occ_download_organizations.R
occ_download_organizations.RdList organizations for a download
Usage
occ_download_organizations(
key,
organizationTitle = NULL,
sortBy = NULL,
sortOrder = NULL,
limit = 20,
start = 0,
curlopts = list(http_version = 2)
)Arguments
- key
A key generated from a request, like that from
occ_download()- organizationTitle
(character) Organization title filter. Optional.
- sortBy
(character) Sort field. One of
ORGANIZATION_TITLE,COUNTRY_CODEorRECORD_COUNT. Optional.- sortOrder
(character) Sort order. One of
ASCorDESC. Optional.- limit
(integer/numeric) Number of records to return. Default: 20, Max: 1000
- start
(integer/numeric) Record number to start at. Default: 0
- curlopts
list of named curl options passed on to
HttpClient. seecurl::curl_optionsfor curl options
Value
a list with two slots:
meta: a single row data.frame with columns:
offset,limit,endofrecords,countresults: a tibble with the results, with columns:
downloadKey,organizationKey,organizationTitle,numberRecords,publishingCountryCode
Examples
if (FALSE) { # \dontrun{
occ_download_organizations(key="0024953-260519110011954")
occ_download_organizations(key="0024953-260519110011954", limit = 3)
occ_download_organizations(
key="0024953-260519110011954",
organizationTitle = "University of Alaska Museum of the North"
)
occ_download_organizations(key="0024953-260519110011954", sortBy = "RECORD_COUNT",
sortOrder = "DESC")
} # }