Time2: Time of A Certain activity State

Description Usage Arguments Value

View source: R/Time2.R

Description

Calculate the total time of being in certain state, e.g. sedentary, active, MVPA, etc.

Usage

1
Time2(x, w, thresh, smallerthan = TRUE, bout.length = 1)

Arguments

x

vector of activity data.

w

vector of wear flag data with same dimension as x.

thresh

threshold to binarize the data.

smallerthan

Find a state that is smaller than a threshold, or greater than or equal to.

bout.length

minimum duration of defining an active bout; defaults to 1.

Value

Time


postGGIR documentation built on July 14, 2021, 5:11 p.m.