Description Usage Arguments Details Value Examples

Takes a list of time series and resample to a new interval.

1 | ```
aggregate_xts(ser, dt, fun = mean)
``` |

`ser` |
xts Times series to aggregate |

`dt` |
numeric New time interval, hours |

`fun` |
function Function applied to aggregate the series to the new interval |

Time series of observation data are often of different temporal resolutions, however the input to most hydrological models, as is the case with the Dynamic TOPMODEL, requires those data at the same interval. This provides a method to resample a collection of such data to a single interval.

Time series resampled at the new interval #' @return The list of observations resampled at the new interval.

1 2 3 4 5 | ```
# Resample Brompton rainfall and PE data to 15 minute intervals
require(dynatopmodel)
data("brompton")
rain <- aggregate_xts(brompton$rain, dt=15/60)
``` |

dynatopmodel documentation built on Jan. 20, 2018, 9:02 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.