Flux aggregate functions take values from an input table and aggregate them in some way. The output table contains is a single row with the aggregated value.
aggregateWindow helper function
does most of the work needed when aggregating data.
It windows and aggregates the data, then combines windowed tables into a single output table.
The following aggregate functions are available: