This data from accelerometer device has x, y, z components table. My problem is that on a specific column I want to select data segments using R code.
How can I this be done?
Example: lets say this is the column
2, 1, 3, 0, 0, 0, 1, 4, 5, 1, 0, 0, 0, 2, 3, 0, 4, 5, 0, 0, 0
My result must be a subsets like this
(2, 1, 3), (1, 4, 5, 1), (2, 3, 0, 4, 5)
stored in a variables that I can reuse. I am basically taking data segments between three consecutive zeros. How can I achieve this in R programming?