Last chance! 50% off unlimited learning
Sale ends in
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.
airnow_downloadSites(
baseUrl = "https://files.airnowtech.org/airnow/today/",
file = "monitoring_site_locations.dat"
)
location of the AirNow monitoring site locations file
name of the AirNow monitoring site locations file
Tibble of site location metadata.
# NOT RUN {
# Fail gracefully if any resources are not available
try({
sites <- airnow_downloadSites()
}, silent = FALSE)
# }
Run the code above in your browser using DataLab