View source: R/bout_methods_expand.R
expand_bouts | R Documentation |
Re-vectorize run length encoded data
expand_bouts(bouts, ...)
## Default S3 method:
expand_bouts(bouts, ...)
bouts |
output from |
... |
arguments passed to methods |
a vector of individual values comprising the runs in bouts
data(example_data, package = "PBpatterns")
intensity <- cut(
example_data$PAXINTEN,
c(-Inf, 101, 760, Inf),
c("SB", "LPA", "MVPA"),
right = FALSE
)
bouts <- analyze_bouts(
intensity, "MVPA", "Troiano_MVPA", epoch_length_sec = 60
)
expand_bouts(bouts)[910:940]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.