Import air quality data from European databaseSource:
This function is a simplified version of the
saqgetr package (see
https://github.com/skgrange/saqgetr) for accessing European air quality
data. The function only returns valid hourly data and is meant as a fast and
convenient way of accessing the most common type of hourly air quality data.
The function works in the same way as other
openair functions that
import air quality data that generally need a site code and year to be
The code of the site(s).
Year or years to import. To import a sequence of years from 1990 to 2000 use
year = 1990:2000. To import several specific years use
year = c(1990, 1995, 2000)for example.
Should meta data be returned? If
TRUEthe site type, latitude and longitude are returned.
By default the returned data has a column for each pollutant/variable. When
to_narrow = TRUEthe data are stacked into a narrow format with a column identifying the pollutant name.
The function can however return key site meta data.
saqgetr package is much more comprehensive and provides data at
other time averages e.g. daily data.