aqs_annualData: Extract annual average data data from the AQS API

Description Usage Arguments See Also

View source: R/aqs_sampleData.R

Description

Extract annual average data data from the AQS API

Usage

 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, ...)

Arguments

aqs_user

User information in the form of a list with email and key. See create_user.

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 edate.

state

Two-digit state code. Required when endpoint is one of byState, byCounty, bySite.

county

Three-digit county code. Required when endpoint is byCounty or bySite.

site

Three-digit site code. Required when endpoint is bySite.

cbdate

Optional begin date for the date of last change interval. Should be a string in format "YYYYMMDD". If cbdate is provided, so much cedate.

cedate

Optional end date for data of last change interval. Should be a string in format "YYYYMMDD". If cedate is provided, so much cbdate.

cbsa

Three-digit census-bureau statistical area (CBSA) code. Required when endpoint is byCBSA.

minlat

Minimum latitude for the bounding box. Required when endpoint is byBox.

maxlat

Maximum latitude for the bounding box. Required when endpoint is byBox.

minlon

Minimum longitude for the bounding box. Required when endpoint is byBox.

maxlon

Maximum longitude for the bounding box. Required when endpoint is byBox.

...

Additional arguments passed to aqs_get

See Also

aqs_get

Other Data Query Functions: aqs_dailyData(), aqs_sampleData()


jpkeller/aqsr documentation built on Aug. 15, 2021, 5:32 p.m.