Description Usage Arguments Details Value
Download data from the fmi (urban) airquality API. If the request is larger than the api allows, it is split into multiple parts. If this results to more than 30 queries, a warning message is printed.
1 2 3 4 5 6 7 8 9 | fmi_airquality(
start,
end = start,
station_id = "100742",
params = "aqindex_pt1h_avg",
simplify_names = TRUE,
verbose = FALSE,
fmi_apikey = NA_character_
)
|
start |
Start time as a POSIXt-object obtained with e.g. lubridate::as_datetime(). |
end |
End time as a POSIXt-object. Defaults to |
station_id |
The weather station id. Defaults to |
params |
Query parameters, a comma separated string, such as
|
simplify_names |
If |
verbose |
If |
fmi_apikey |
An optional fmi-apikey. See http://en.ilmatieteenlaitos.fi/open-data-manual. |
The available variables are listed below, more information can be found from https://en.ilmatieteenlaitos.fi/open-data-manual.
The following variables are available:
aqindex_pt1h_avg
: air quality index
co_pt1h_avg
: carbon monoxide
no2_pt1h_avg
: nitrogen dioxide
no_pt1h_avg
: nitrogen monoxide
o3_pt1h_avg
: ozone
pm10_pt1h_avg
: particulate matter < 10 nm
pm25_pt1h_avg
: particulate matter < 2.5 nm
qbcpm25_pt1h_avg
: black carbon pm2.5
so2_pt1h_avg
: sulphur dioxide
trsc_pt1h_avg
: odorous sulphur compounds
A tibble with time in the first
column and the variables specified in params
in the other columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.