Description Usage Arguments Value Author(s) See Also Examples
View source: R/prolonged.sed.bouts.min.R
This function calculates the minutes spent in sitting/lying bouts that last at least 'n' minutes in duration. User specifies n.
1 | prolonged.sed.bouts.min(posture, epoch = 1, n)
|
posture |
posture is a vector indicating sitting (0), standing (1) and stepping (2) |
epoch |
numeric value indicating what epoch (in seconds) the data are in (e.g. 60 = 1 minute epochs). The default value is 1 second |
n |
n is a numeric value indicating the duration (in minutes) of prolonged sedentary bouts of interest |
A numeric value indicating minutes spent in sedentary bouts longer than 'n' minutes in duration
John Staudenmayer
1 2 3 4 5 | data(second.by.second.data)
posture <- second.by.second.data$ap.posture
# estimates minutes spent in sedentary bouts lasting at least 60 minutes
prolonged.sed.bouts.min(posture,epoch=1,n=60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.