identify_non_wearing_periods {walkboutr} | R Documentation |
Identify non-wearing periods: This function identifies non-wearing periods in accelerometry data based on a threshold of consecutive epochs with activity counts of 0.
Description
Identify non-wearing periods: This function identifies non-wearing periods in accelerometry data based on a threshold of consecutive epochs with activity counts of 0.
Usage
identify_non_wearing_periods(
accelerometry_counts,
non_wearing_min_threshold_epochs
)
Arguments
accelerometry_counts |
a data frame containing columns for time (in POSIXct format) and activity_counts |
non_wearing_min_threshold_epochs |
an integer value indicating the minimum number of consecutive epochs with 0 activity counts that constitute a non-wearing period |
Details
Identify periods where the accelerometer is not being worn based on the activity counts and a minimum threshold value.
Value
a data frame with the same columns as the input data frame accelerometry_counts
,
but with a new column named non_wearing
that indicates whether the
individual was wearing their accelerometer during a given period.
[Package walkboutr version 0.6.0 Index]