View source: R/epa_aqs_getSites.R
epa_aqs_getSites | R Documentation |
Download site metadata from the US EPA and save it to a directory. Then uncompress and parse the data into a tibble.
epa_aqs_getSites(
url = "https://aqs.epa.gov/aqsweb/airdata/aqs_sites.zip",
downloadDir = tempdir(),
quiet = TRUE
)
url |
URL for the |
downloadDir |
Directory where .zip file will be saved. |
quiet |
Logical passed on to |
Tibble of EPA site metadata.
## Not run:
library(MazamaCoreUtils)
library(AirMonitorIngest)
# Create a directory specifically for EPA data
dir.create("~/Data/EPA", recursive = TRUE)
# Set logging level so messages and errors will appear in the console
MazamaCoreUtils::initializeLogging(logDir = "~/Data/EPA/")
logger.setLevel(TRACE)
# Download and parse site metadata
AQS_sites <- epa_aqs_getSites(downloadDir = "~/Data/EPA", quiet = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.