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

Description Usage Arguments Value

View source: R/criterioSIB.R

Description

Generates a vector that indicates for each row of a dataframe (usually epoch or BIN file) if that row verifies the condition to be considered a SIB, i.e Anglez variying a few degrees for a certain amount of time (durBoutMin, and ENMO lower than a low value)

Usage

1
2
criterioSIB(df, critAnglez = 5, limSup = 30/1000,
  durBoutMin = dminutes(5), durEpoch = dseconds(5))

Arguments

df

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

critAnglez

represents maximum of deviation (in both directios) of angle Z that it is allowed during a SIB

limSup

superior limit for ENMO

durBoutMin

minimum amount of time that the conditions must be met to beconsidered a SIB period

durEpoch

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

Value

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


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