Description Usage Arguments Details Value Examples
View source: R/ukair_get_hourly_data.R
This function fetches hourly data from DEFRA's air pollution monitoring stations.
1 | ukair_get_hourly_data(site_id = NULL, years = NULL)
|
site_id |
This is the ID of a specific site. |
years |
Years for which data should be downloaded. |
The measurements are generally in μ g/m^3 (micrograms per cubic metre). To check the units, refer to the table of attributes (see example below). Please double check the units on the DEFRA website, as they might change over time.
A data.frame containing hourly pollution data.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Get data for 1 year
output <- ukair_get_hourly_data("ABD", 2014)
# Get data for multiple years
output <- ukair_get_hourly_data("ABD", 2014:2016)
# Get units
attributes(output)$units
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.