g.imputeTimegaps {GGIR}R Documentation

Impute gaps in three axis raw accelerometer data

Description

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_

Usage

  g.imputeTimegaps(x, xyzCol, timeCol, sf, k = 0.25, impute = TRUE)

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

Value

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)

Author(s)

Vincent T van Hees <v.vanhees@accelting.com>


[Package GGIR version 2.7-1 Index]