calculate.stats {AQEval} | R Documentation |
Some functions to calculate statistics
Description
Calculate data set statistics for selected time intervals.
Usage
calcDateRangeStat(
data,
from = NULL,
to = NULL,
stat = NULL,
pollutant = NULL,
...,
method = 2
)
calcRollingDateRangeStat(
data,
range = "year",
res = "day",
stat = NULL,
pollutant = NULL,
from = NULL,
to = NULL,
...,
method = 2
)
Arguments
data |
(data.frame, tibble, etc) Data set containing
data statistic to be calculated for, and |
from |
(various) Start date(s) to subsample from when
calculating statistic, by default end of supplied
|
to |
(various) End date(s) to subsample to when
calculating statistic, by default end of supplied
|
stat |
(function) Statistic to be applied to selected
data, by default |
pollutant |
(character) The name(s) of data-series to
analyse in |
... |
extra arguments. |
method |
(numeric) Method to use when calculating statistic. |
range |
(character) For |
res |
(character) For |
Value
These functions return data.frame
s of function
outputs.
Note
These functions are in development and likely to change significantly in future versions, please handle with care.