Description Usage Arguments Value
Aggregate xts matrix data to the given time granularity
1 2 |
data |
Input |
on |
Determines the new unit of the data frequency. Can be "minutes", "hours", or "days". |
k |
The new value of frequency (only for hours and minutes). |
FUN |
Function to aggregate the data with. Either a closure (function), or a string.
Strings currently supported are "sum", "prod", "min", "max", last", and "first".
By default |
na_handling |
What to do with NA's. "auto" fills 0 if FUN == sum, na.locf's last value else. NULL does nothin to NAs. If a function is given, it is applied directly. |
align_data |
Align data to the next truncated time-stamp |
start_date |
First Date in the regular series. Calculated from the given series if NULL. Its type must match the type of |
end_date |
Last Date in the regular series. Calculated from the given series if NULL. Its type must match the type of |
... |
Other parameters given to FUN |
Aggregated Time-series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.