I have a dataset with the following structure: Month | Day | Hour | Minute | Value1 | Value2 | Value3
The dataset has a length of 525,600 rows. What I need is the mean over fifteen minutes for each value (value1, value2, value3). The output should have the following structure:
Month | Begin | End | MeanValues1 | MeanValues2 | MeanValues3
01 | 0:00 | 0:15 | 1.23 | 2.34 | 3.23
01 | 0:15 | 0:30 | 1.76 | 3.02 | 3.24
Hence, the output dataset should have a length of 35,040 rows.
Can anybody help me and give me a lightweight solution process for R? I don't know how I can implement that in a very efficient way. Moreover, it is not clear how I can build the Begin and End column in the output dataset.
I thank you in advance for any input.
Best