tsaggregates function

Non-overlapping temporal aggregation of a time series