aggregate {fSeries} | R Documentation |
Computes Summary Statistics of Data Subsets
## S3 method for class 'timeSeries': aggregate(x, by = c("monthly", "quarterly"), FUN = colMeans, units = NULL, ...)
by |
[aggregate] - a character string denoting the aggregation period, either "monthly" or "quarterly" .
|
FUN |
the function to be applied. |
units |
an optional character string, which allows to overwrite the
current column names of a timeSeries object. By default
NULL which means that the column names are selected
automatically.
|
x |
an object of class timeSeries .
|
... |
arguments passed to other methods. |
returns an aggregated S4 object of class timeSeries
.
Diethelm Wuertz for the Rmetrics R-port.
## data - x = as.timeSeries(data(msft.dat)) ## aggregate - aggregate(x)