
Last chance! 50% off unlimited learning
Sale ends in
importMeta(source = "aurn", all = FALSE)
all = FALSE
only the site code, site name,
latitude and longitude and site type are imported. Setting
all = TRUE
will import all available meta data.importAURN
, importKCL
and
importSAQN
for importing air quality data from each
network.## import AQ data and add meta data to data frame
## Not run: ------------------------------------
# aq <- importAURN(site = c("kc1", "my1"), year = 2009)
# meta <- importMeta(source = "aurn")
# aq <- merge(aq, meta, by = "site")
## ---------------------------------------------
## aggregate first before adding meta data (useful for many sites/years)
## Not run: ------------------------------------
# aq <- importAURN(site = c("kc1", "my1"), year = 2009)
# meta <- importMeta(source = "aurn")
# ## calculate annual means
# annual <- timeAverage(aq, avg.time = "year", type = "site")
# annual <- merge(annual, meta, by = "site")
## ---------------------------------------------
Run the code above in your browser using DataLab