I have time series data in a table. Basically, each line has a timestamp and value. The frequency of the data is completely random.
I would like to try it with a given frequency and for each frequency to extract the relevant information about it: min, max, last, change (relative previous), return (change / previous) and, possibly, more (count ...)
So here is my input:
08:00:10, 1
08:01:20, 2
08:01:21, 3
08:01:24, 5
08:02:24, 2
And I would like to get the following result for a 1-minute sample (ts, min, max, last, change, return):
ts m M L Chg Return
08:01:00, 1, 1, 1, NULL, NULL
08:02:00, 2, 5, 5, 4, 4
08:03:00, 2, 2, 2, -3, -0.25