Dear all,
I have this database in a CSV file. It is a small part of about 6 million records in the complete database. My problem is bigger like her!
Date time X1(mss) Y1(mss) Z1(mss)
2020-01-17 23:47:50:3 -0.268 0.603 6.982
2020-01-17 23:47:50:4 -0.213 0.541 7.013
2020-01-17 23:47:50:5 -0.132 0.546 6.953
2020-01-17 23:47:50:6 -0.232 0.460 7.039
2020-01-17 23:47:50:7 -0.148 0.637 6.975
2020-01-17 23:47:50:8 -0.158 0.503 7.025
2020-01-17 23:47:50:9 -0.158 0.608 6.984
2020-01-17 23:47:51:0 -0.196 0.496 7.003
2020-01-17 23:47:51:1 -0.153 0.603 7.023
2020-01-17 23:47:51:2 -0.170 0.558 7.008
2020-01-17 23:47:51:3 -0.182 0.567 7.020
2020-01-17 23:47:51:4 -0.177 0.534 7.023
2020-01-17 23:47:51:5 -0.194 0.555 7.025
2020-01-17 23:47:51:6 -0.177 0.572 6.991
2020-01-17 23:47:51:7 -0.180 0.563 7.023
2020-01-17 23:47:51:8 -0.180 0.536 6.996
2020-01-17 23:47:51:9 -0.194 0.553 7.037
2020-01-17 23:47:52:0 -0.170 0.555 7.001
2020-01-17 23:47:52:1 -0.194 0.546 7.027
In the first column I have a high frequency record containing DATE and TIME when an event (X1, Y1, Z1) was recorded. Note that the TIME was recorded (in my datalogger) with tenths of a second in the format "HH:MM:SS:OS". I need to group these records per second with the average value of each variable X, Y and Z. However, R does not recognize this time format. I have two questions:
1- How does R to recognize this format as a time series?
2- How do I group the tenth of a second into a record every second with the average value of each variable X, Y and Z?
Can someone help me, please?
I,m a beginner in R...
Thank you all!