knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(europollution)
A list of the pollutants, with a short description, can be found in the pollutants_id
table available in this package. This table comes from http://dd.eionet.europa.eu/vocabulary/aq/pollutant/view. In the europollution
package, pollutants are called using their code
in the pollutants_id
table. For instance, to download data on sulphur dioxide and ozone, the following pollutant argument should be passed to the functions: pollutants = c("SO2", "O3")
.
Note that all pollutants are not be available for each station. The functions provided in this package enable to download all the available data.
ep_search_pollutant
functionThe function ep_search_pollutant
enables to find the code for a pollutant. To find the code for sulphur dioxide, use the following command for example:
europollution::ep_search_pollutant("sulphur")
The function returns every entry in the pollutant_id
table which contains the word "sulphur". The code of interest is "SO2" and can be used in the other functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.