aqs_monitors_by_county {RAQSAPI} | R Documentation |
aqs_monitors_by_county
Description
Returns a table of monitors and related metadata at sites with the provided parameter, stateFIPS and county_code for bdate - edate time frame.
Usage
aqs_monitors_by_county(
parameter,
bdate,
edate,
stateFIPS,
countycode,
cbdate = NA_Date_,
cedate = NA_Date_,
return_header = FALSE
)
Arguments
parameter |
a character list or a single character string which represents the parameter code of the air pollutant related to the data being requested. |
bdate |
a R date object which represents that begin date of the data selection. Only data on or after this date will be returned. |
edate |
a R date object which represents that end date of the data selection. Only data on or before this date will be returned. |
stateFIPS |
a R character object which represents the 2 digit state
FIPS code (with leading zero) for the state being
requested. @seealso |
countycode |
a R character object which represents the 3 digit state
FIPS code for the county being requested (with leading
zero(s)). @seealso |
cbdate |
a R date object which represents a "beginning date of last change" that indicates when the data was last updated. cbdate is used to filter data based on the change date. Only data that changed on or after this date will be returned. This is an optional variable which defaults to NA_Date_. |
cedate |
a R date object which represents an "end date of last change" that indicates when the data was last updated. cedate is used to filter data based on the change date. Only data that changed on or before this date will be returned. This is an optional variable which defaults to NA_Date_. |
return_header |
If FALSE (default) only returns data requested. If TRUE returns a AQSAPI_v2 object which is a two item list that contains header information returned from the API server mostly used for debugging purposes in addition to the data requested. |
Value
a tibble or an AQS_Data Mart_APIv2 S3 object of monitors from a selected county
by_county aggregate functions
NA
Note
All monitors that operated between the bdate and edate will be returned
See Also
Other Aggregate _by_county functions:
aqs_annualsummary_by_county()
,
aqs_dailysummary_by_county()
,
aqs_qa_annualperformanceeval_by_county()
,
aqs_qa_blanks_by_county()
,
aqs_qa_collocated_assessments_by_county()
,
aqs_qa_flowrateaudit_by_county()
,
aqs_qa_flowrateverification_by_county()
,
aqs_qa_one_point_qc_by_county()
,
aqs_qa_pep_audit_by_county()
,
aqs_quarterlysummary_by_county()
,
aqs_quarterlysummary_by_site()
,
aqs_sampledata_by_county()
,
aqs_transactionsample_by_county()
Examples
# returns an aqs_v2 S3 object containing all SO2 monitors in
# Hawaii County, HI that were operating between May 01-02, 2015.
## Not run: aqs_monitors_by_county(parameter="42401",
bdate=as.Date("20150501", format="%Y%m%d"),
edate=as.Date("20150502", format="%Y%m%d"),
stateFIPS="15",
countycode="001"
)
## End(Not run)