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

Description Usage Arguments Value

View source: R/criterioBout.R

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

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

Arguments

df

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

durBoutMin

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

durEpoch

amount of time that represents each row of the dataframe (duration of a epoch usually)

pctBout

represents fraction of time that the .criterio must be TRUE

Value

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


fjbaron/rbouts documentation built on July 12, 2019, 7:51 p.m.