make_inactive_period {walkboutr} | R Documentation |
Create an inactive period
Description
This function creates an inactive period with a given length.
Usage
make_inactive_period(
length = 1,
is_bout = FALSE,
non_wearing = FALSE,
complete_day = FALSE
)
Arguments
length |
The length of the inactive period. |
is_bout |
Logical value indicating whether this period is part of a bout of inactivity. |
non_wearing |
Logical value indicating whether this period is due to non-wearing of the accelerometer. |
complete_day |
Logical value indicating whether this period occurs during a complete day of wearing the accelerometer. |
Value
A data frame with columns activity_counts, bout, non_wearing, and complete_day, where activity_counts is set to 0 for the entire length, and bout, non_wearing, and complete_day are set according to the input values.
[Package walkboutr version 0.6.0 Index]