aggregate_index function

Expand a dataset to include temporal aggregates