Impute gaps in three axis raw accelerometer data
g.imputeTimegaps.RdRemoves 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_
Arguments
- 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
- PreviousLastValue
Automatically identified last value in previous chunk of data read.
- PreviousLastTime
Automatically identified last timestamp in previous chunk of data read.
- epochsize
Numeric vector of length two, with short and long epoch sizes.