deliveryPreprocess: Preprocess Accelerometry Data

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/deliveryPreprocess.R

Description

This function preprocesses accelerometry data by removing days based on a total activity count (default: less than 5000) or total time with activity (default: less than 10 minutes). Additionally, the function has an option to zeropad truncated days such that that days that do not have a whole day of 1440 minutes of data spanning from 00:00 to 23:59 (default: TRUE).

Usage

1
deliveryPreprocess(df, minLow = 5000, minTime = 10, zeropad = TRUE, ...)

Arguments

df

A dataframe. The source accelerometry dataset, in dataframe format.

minLow

Numeric. The minimum total counts of movement for a day to not be removed.

minTime

Numeric. The minimum number of minutes of activity for a day to not be removed.

zeropad

Boolean value for truncated days to be zeropadded.

...

not used at this time

Details

Function works for dataframes from one or multiple unique trials.

Value

The dataframe is returned with days fulfilling the dropping criteria removed and truncated days zeropadded. A new column indicating which day is added to the dataframe.

Note

The input dataframe should have the following columns: ‘TimeStamp’, ‘axis1’, ‘axis2’, ‘axis3’, ‘vm’, where ‘vm’ is the vector magnitude of axes 1, 2, and 3. Dataframe should also be formatted to 60 second epoch.

Author(s)

Ryan Moore ryan.moore@vumc.org, Cole Beck cole.beck@vumc.org, and Leena Choi leena.choi@Vanderbilt.Edu

See Also

deliveryPred

Examples

1
2
3
data(deliveryData)

deliveryDataProcessed <- deliveryPreprocess(df = deliveryData)

PhysicalActivity documentation built on Jan. 23, 2021, 1:06 a.m.