diurnalGbm | R Documentation |
This function calculates the diurnal profile of a pollutant with the effect of meteorology removed. Its primary use is to compare two periods to determine whether there has been a shift in diurnal profile e.g. due to some intervention.
diurnalGbm(
input_data,
vars = c("ws", "wd", "hour", "weekday"),
pollutant = "nox",
dates = c("01/01/2012", "31/12/2012", "31/12/2013"),
ylab = "value",
plot = TRUE
)
input_data |
A data frame to analyse. |
vars |
The explanatory variables used in the model. |
pollutant |
Name of the pollutant to apply meteorological normalisation to. |
dates |
A vector of dates, length three. These dates are used to
partition the data into two categories (before/after). The date format is
UK e.g. |
ylab |
Label for y-axis. |
plot |
Should a plot be produced? |
Some data
David Carslaw
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.