importAirbase(site = "gb0620a", year = 1969:2012, pollutant = NA,
add = c("country", "site.type"), splice = FALSE, local = NA)
year = 2010:2012
.airbaseStats
.airbaseSplice
for details.importAirbase
function is to provide an
alternative and hopefully complementary approach to accessing
airbase data with a specific focus on integration with R and the
openair package. Similar to other import functions in openair (see links), the
importAirbase
function works with sites and combines all
species into one data frame. Rather than having year-specific
files there is only one file (data frame) per site covering all
years. There are many potential issues that need to be dealt with,
although for the most part everything should be compiled in a
straightforward way. One of the key issues is the use of different
instrument techniques measuring the same species at a site, or an
instrument that was replaced at some point. The EEA usefully
record this information. Rather than attempt to combine several
potential time series for the same pollutant, they have been kept
separate. Examples include these use of different methods to
measure PM10 e.g. TEOM and FDMS. Because different instruments can
provide very different concentrations it is probably wise to keep
them separate and analyse them as separate species. In other cases
e.g. ozone or NO2, if an instrument was replaced half way through
a time series it would be reasonable to combine the time series
into a single set. There is a function airbaseSplice
that
will combine pollutants once imported using importAirbase
. NOTE! This function should be considered as provisional and the
author would appreciate any feedback on its use.airbaseSplice
,
airbaseFindCode
, airbaseStats
, airbaseInfo