Description Usage Arguments Value Examples
Calculate the total time of being in certain state, e.g. sedentary, active, MVPA, etc.
1 |
x |
|
w |
|
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. |
Time
1 2 3 4 5 | data(example_activity_data)
count1 = c(t(example_activity_data$count[1,-c(1,2)]))
wear1 = c(t(example_activity_data$wear[1,-c(1,2)]))
time_sedentary = Time(x = count1, w = wear1, thresh = 100,
bout.length = 1, smallerthan = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.