Description Usage Arguments Value Author(s) See Also Examples
View source: R/guideline.bouts.min.R
This function calculates time spent in guideline minutes (bouts of MVPA (>=3 METs) that last at least 10 min. Allows for 20
1 | guideline.bouts.min(mets)
|
mets |
mets is a second-by-second numeric vector |
numeric value indicating number of minutes spent in guideline bouts
John Staudenmayer
1 2 3 4 5 6 7 | data(second.by.second)
mets <- second.by.second.data$mets
guideline.bouts.min(mets)
# summarize by date
tapply(second.by.second.data$mets, second.by.second.data$date, guideline.bouts.min)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.