Arguments
mydata
A data frame containing a date
field. mydata
must contain a date
field in
Date
or POSIXct
format. The input time
series must be regular e.g. hourly, daily.
pollutant
The name of a pollutant e.g.
pollutant = "o3"
.
width
The averaging period (rolling window width)
to use e.g. width = 8
will generate 8-hour rolling
mean values when hourly data are analysed.
new.name
The name given to the new rollingMean
variable. If not supplied it will create a name based on
the name of the pollutant and the averaging period used.
data.thresh
The data capture threshold in values are calculated if data capture over the period of
interest is less than this value. For example, with
width = 8
and data.thresh = 75
at least 6
hours are required to calculate the mean,
align
specifyies how the moving window should be
aligned. "right"
means that the previous
hours
(including the current) are averaged. This
seems to be the default for UK air quality rolling mean
statistics. "left"
...
other arguments, currently unused.