reduce_freq function

Reduce the frequency of the time series data in a data.table