Description Usage Arguments Value Note See Also Examples
View source: R/airnow_downloadSites.R
The https://airnowtech.org site provides both air pollution monitoring data as well as monitoring site location metadata. This function retrieves the most recent version of the site location metadata file and returns it as a dataframe.
A description of the data format is publicly available at the Monitoring Site Fact Sheet.
1 2 3 4 | airnow_downloadSites(
baseUrl = "https://files.airnowtech.org/airnow/today/",
file = "monitoring_site_locations.dat"
)
|
baseUrl |
location of the AirNow monitoring site locations file |
file |
name of the AirNow monitoring site locations file |
Tibble of site location metadata.
As of December, 2016, the monitoring_site_locations.dat
file has an encoding of
"CP437" (aka "Non-ISO extended-ASCII" or "IBMPC 437") and will be converted to "UTF-8"
so that French and Spanish language place names are properly encoded in the returned dataframe.
airnow_createMetaDataframes
1 2 3 4 5 6 7 8 9 | ## Not run:
# Fail gracefully if any resources are not available
try({
sites <- airnow_downloadSites()
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.