I have compounds concentrations measured every second. I want to make 30 and 60 seconds averages. I have been reading the posts here, I tried lubridate
and dplyr
. But no luck. I am trying to make this work, but I have not been able to do so. i am transitioning from SAS to R, so please be patient.
This is my data:
head (data)#show the first 6 rows
Date Time Temp Appb Bppb Cppb Dppb Eppb Fppb
1 10/30/17 21:32:33 25.23 -0.469304 22.4445 35.5993 -18.4843 52.0488 -2.947340
2 10/30/17 21:32:34 25.23 -1.255780 21.8248 34.2364 -20.9051 47.4344 -2.071230
3 10/30/17 21:32:35 25.23 -0.769233 21.1590 30.5892 -20.9347 42.6061 -0.991607
4 10/30/17 21:32:36 25.23 -0.874262 21.3353 25.4841 -19.6127 38.3224 -0.452383
5 10/30/17 21:32:37 25.24 -0.819439 21.1916 21.4919 -16.5991 36.1331 -0.150002
6 10/30/17 21:32:38 25.24 -1.895730 21.5345 18.0576 -17.2539 31.7448 -0.311064