Description Usage Arguments Details Value Examples
Import air quality data from across the Lonon Air Quality Network (LAQN) for specified parameters
1 2 3 |
start_date |
Inclusive start date of data request. Must be a date object, Default: Sys.Date() - 1 |
end_date |
Inclusive end date of data request. Must be date object, Default: Sys.Date() - 1 |
sites |
character vector of site codes or 'all' to fetch all available sites, Default: 'all' |
species |
character vector of species codes or 'all' to fetch all available species, Default: 'all' |
borough_sf |
A simple-features data frame containing London Borough polygons, Default: NULL |
meta_data |
Meta data dataframe, as fetched by importLondon etc. If not provided will be fetched, Default: NULL |
verbose |
logical. Include site meta data in returned data frame, Default: TRUE |
DETAILS
OUTPUT_DESCRIPTION
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
if(interactive()){
# For all sites/species:
df <- importLAQN(start_date = as.Date('2019-01-01'),
end_date = as.Date('2019-01-07'))
# For specified sites and species:
df <- importLondon(start_date = as.Date('2019-01-01'),
end_date = as.Date('2019-01-07'),
sites = c("GB6", "CR5"),
species = c("NO2", "PM10", "PM2.5"))
# Providing meta data
meta_data <- getMetaLondon()
df <- importLondon(start_date = as.Date('2019-01-01'),
end_date = as.Date('2019-01-07'),
sites = c(c("GB6", "CR5")),
species = c("NO2", "PM10", "PM2.5"),
meta_data = meta_data)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.