g.imputeTimegaps {GGIR} | R Documentation |
Removes all sample with a zero in each of the three axes, and then (as default) imputes time gaps by the last recorded value per axis normalised to 1 _g_
g.imputeTimegaps(x, xyzCol, timeCol, sf, k = 0.25, impute = TRUE)
x |
Data.frame with raw accelerometer data, and a timestamp column with millisecond resolution. |
xyzCol |
Columnnames or numbers for the x, y and z column |
timeCol |
Column name or number for the timestamp column |
sf |
Sample frequency in Hertz |
k |
Minimum time gap length to be imputed |
impute |
Boolean to indicate whether the time gaps identified should be imputed |
Data.frame based on input x with timegaps imputed (as default) or with recordings with 0 values in the three axes removed (if impute = FALSE)
Vincent T van Hees <v.vanhees@accelting.com>