Description Usage Arguments See Also
View source: R/aqs_sampleData.R
Extract annual average data data from the AQS API
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | aqs_annualData(
aqs_user,
endpoint = c("bySite", "byCounty", "byState", "byBox", "byCBSA"),
param,
bdate,
edate,
state = NULL,
county = NULL,
site = NULL,
cbdate = NULL,
cedate = NULL,
cbsa = NULL,
minlat = NULL,
maxlat = NULL,
minlon = NULL,
maxlon = NULL,
...
)
aqs_annualData_bySite(aqs_user, param, bdate, edate, state, county, site, ...)
aqs_annualData_byCounty(aqs_user, param, bdate, edate, state, county, ...)
aqs_annualData_byState(aqs_user, param, bdate, edate, state, ...)
aqs_annualData_byCBSA(aqs_user, param, bdate, edate, cbsa, ...)
|
aqs_user |
User information in the form of a list with |
endpoint |
Service endpoint |
param |
Parameter code for which to extract data. Up to five codes may included in a single request. |
bdate |
Begin date for data sample interval. Should be a string in format "YYYYMMDD" |
edate |
End date for data sample interval. Should be a string in format "YYYYMMDD". Must be from the same year as |
state |
Two-digit state code. Required when |
county |
Three-digit county code. Required when |
site |
Three-digit site code. Required when |
cbdate |
Optional begin date for the date of last change interval. Should be a string in format "YYYYMMDD". If |
cedate |
Optional end date for data of last change interval. Should be a string in format "YYYYMMDD". If |
cbsa |
Three-digit census-bureau statistical area (CBSA) code. Required when |
minlat |
Minimum latitude for the bounding box. Required when |
maxlat |
Maximum latitude for the bounding box. Required when |
minlon |
Minimum longitude for the bounding box. Required when |
maxlon |
Maximum longitude for the bounding box. Required when |
... |
Additional arguments passed to |
Other Data Query Functions:
aqs_dailyData()
,
aqs_sampleData()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.