Learn R Programming

PhysicalActivity (version 0.2-4)

deliveryPreprocess: Preprocess Accelerometry Data

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

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

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.

Details

Function works for dataframes from one or multiple unique trials.

See Also

deliveryPred

Examples

Run this code
# NOT RUN {
data(deliveryData)

deliveryDataProcessed <- deliveryPreprocess(df = deliveryData)

# }

Run the code above in your browser using DataLab