deliveryFeatures {PhysicalActivity} | R Documentation |
Delivery Features
Description
The function extracts multiple statistical features relevant for classification of days as delivery or human wear. The extracted features are: mean, variance, maximum, absolute change, absolute energy, proportion of trial completed, 95th quantile, skewness, and kurtosis.
Usage
deliveryFeatures(df, ...)
Arguments
df |
A dataframe. The source accelerometry dataset, in dataframe format. |
... |
not used at this time |
Details
Function works for data consisting of one or multiple unique trials.
Value
A dataframe is returned with a row for each unique day and a column for each feature.
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
Examples
data(deliveryData)
deliveryDataProcessed <- deliveryPreprocess(df = deliveryData)
deliveryDataFeats <- deliveryFeatures(df = deliveryDataProcessed)