Download the pollution files available at Contaminante

download_pollution(year, progress = interactive())

Arguments

year

a numeric vector containing the years for which to download data (the earliest possible value is 2009)

progress

whether to display a progress bar (TRUE or FALSE). By default it will only display in an interactive session.

Value

a data.frame with pollution information for the following pollutants "CO", "NO", "NO2", "NOX", "O3", "PM10", "SO2", "PM25", and "PMCO"

Examples

# NOT RUN {
head(download_pollution(2017))
# }