getAQDMdata: getAQDMdata

Description Usage Arguments Details Value Examples

Description

Function for requesting monitoring data from U.S. EPA's Air Quality Data Mart.

Usage

1
getAQDMdata(..., synchronous = FALSE)

Arguments

synchronous

Should a synchronous request be sent (See details)

...

named query parameters to be sent to AQDM.

Details

... should be a set of name/value pairs where the names correspond to the variables used by the AQDM web service.

If synchronous = TRUE then a synchronous request is sent to AQDM. This will result in raw data being immediatiately returned to R. EPA is more strict on the size of the request when using the synchonous service, so for larger data pulls synchonous = FALSE may be required.

When synchonous = FALSE then an asynchronous request is sent tp AQDM. This will create an object of class AQDMrequest being returned. This object can then be used to retrieve the data from the server when it is ready.

Value

If synchonous = TRUE a data.frame is returned with the requested data. If synchonous = FALSE an AQDMrequest object is returned. The AQDMrequest object can be used with getAQDMrequest to retrieve the data once it is ready.

Examples

1
2
3
4
5
6
## Not run: 
 x <- getAQDMdata(user = "me@email.com", pw = "abc123", param = "44201",
                  state = 18, county = 89, bdate = "20140101",
                  edate = "20141231")

## End(Not run)

ebailey78/raqdm documentation built on May 15, 2019, 7:29 p.m.