criterioBout: Indicates which rows meets the criteria for be considered...

View source: R/criterioBout.R

criterioBoutR Documentation

Indicates which rows meets the criteria for be considered part of a Bout meeting certain criteria

Description

Generates a vector that indicates for each row of a dataframe (usually epoch or BIN file) if that row meets the criteria to be considered part of a Bout (veryfy a criteria for ca percent of time of a minimum duration),

Usage

criterioBout(df, pctBouts = 1, durBoutMin = dseconds(5))

Arguments

df

data frame with columns .criterio and eventually .criterioNW (that represents NonWear time as TRUE/FALSE)

pctBouts
durBoutMin

minimum amount of time that the condition muest be met to be aconsidered a Bout

Value

a boolean vector (TRUE/FAlSE) indicating if the condition of belonging to a Bout is met.


fjbaron/accelerator documentation built on July 7, 2023, 6:52 p.m.