Learn R Programming

GGIR (version 2.6-0)

g.imputeTimegaps: Impute gaps in three axis raw accelerometer data

Description

Removes all sample with a zero in each of the three axes, and then imputes time gaps by the last recorded value per axis normalised to 1 _g_

Usage

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

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

Value

Data.frame based on input x with timegaps inputed