Description Usage Arguments Details Value Examples
Function for requesting monitoring data from U.S. EPA's Air Quality Data Mart.
1 | getAQDMdata(..., synchronous = FALSE)
|
synchronous |
Should a synchronous request be sent (See details) |
... |
named query parameters to be sent to AQDM. |
... 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.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.