My dataframe has column-names Timestamp, es
and looks like:
Timestamp es
2015-04-01 09:07:42 31
2015-04-01 09:08:01 29.5
2015-04-01 09:15:03 18.5
2015-04-01 09:15:05 8.8
2015-04-01 09:15:09 9.6
The time runs till 15:30:30 (around 12000 es
data points against each timestamp a day) and the corresponding es.
Does R have some function in some package or code to average the es
of all the timestamps within half hour. Sample output should look like:
2015-04-01 09:30:00 Value(Average of all es from 9:00 to 9:30)
2015-04-01 10:00:00 Value(Average of all es from 9:30 to 10:00)
2015-04-01 10:30:00 Value(Average of all es from 10:00 to 10:30)
... (the list goes on till 15:30:30)