Description Details Functions Data source
A R wrapper to access air pollution data from the European Environment Agency
This package is R wrapper to access air pollution data from the European Environment Agency, along with some potentially useful data wrangling functions.
Air pollution data from the European Environment Agency comes in a specific format and it requires some coding to gather it in a nice data frame. The following package provides this short coding and wrangles the data into a user-friendly 'R' format.
This package contains the functions:
ep_get_urls
: creates a vector of the URLs for the datasets
ep_metadata
: downloads sampling point metadata
ep_download
: downloads air pollution data for European cities
ep_search_pollutant
: provides the code for a pollutant based on its name
A detailed decription of the dataset can be found here: https://www.eea.europa.eu/data-and-maps/data/aqereporting-8
Instructions on access to the data are provided here: https://discomap.eea.europa.eu/map/fme/AirQualityExport.htm
On the EEA website, the process to access the data is as follows:
Write a simple request URL based on values of parameters.
This request URL leads to a set of URLs enabling to download a large number of data files, separately.
Download the files.
The present package enables to simplify and somehow automatize the download process in R
.
It also provides simple cleaning functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.