get_daily_data: Get daily air pollution data for given dates and province

Description Usage Arguments Value Examples

Description

Get daily air pollution data for given dates and province

Usage

1
get_daily_data(dates, province, from, to)

Arguments

dates

Character vector with one or multiple dates formatted as "yyyy-mm-dd" (see examples). Alternatively, use from and to.

province

Character. The first two letters of province name.

from

Character. Starting date, with format "yyyy-mm-dd".

to

Character. Last date required, with same format as above.

Value

A dataframe, suitable to be used directly in openair package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
dataset <- get_daily_data("2015-01-28", province = "gr")

dataset <- get_daily_data("2015-01-03", "MA")

dataset <- get_daily_data("2015-01-03", "Se")

dataset <- get_daily_data(c("2015-01-28", "2015-01-29"), "se")

dataset <- get_daily_data(province = "se", from = "2015-01-10", to = "2015-01-15")

## End(Not run)

SevillaR/aire documentation built on May 9, 2019, 1:23 p.m.