powered by
`getArthroCollections()` obtains collections data on a year range [start_year, end_year] for authorized VectorSurv Gateway accounts.
getArthroCollections(token, start_year, end_year, arthropod, agency_ids = NULL)
A dataframe of collections
A valid access token returned from `getToken()`
Start year of data
End year of data
Specify arthropod type from: 'mosquito', 'tick'
Filter on agency id, default to NULL for all available agencies,otherwise provide a vector of agency ids, such as `agency_ids = c(55,56)`
if (FALSE) { token = getToken() collections = getArthroCollections(token, 2021, 2022, 'mosquito',c(55,56), TRUE)}
Run the code above in your browser using DataLab