Learn R Programming

GGIR (version 2.4-0)

g.sib.det: sustiained inactivty bouts detection

Description

Detects sustiained inactivty bouts. Function not intended for direct use by package user

Usage

g.sib.det(M, IMP, I, twd=c(-12,12), anglethreshold = 5, 
              timethreshold = c(5,10), acc.metric = "ENMO",
              desiredtz="", constrain2range=TRUE, 
              myfun=c())

Arguments

M

Object produced by g.getmeta

IMP

Object produced by g.impute

I

Object produced by g.inspectfile

twd

Vector of length 2, indicating the time window to consider as hours relative to midnight.

anglethreshold
timethreshold
acc.metric

Which one of the metrics do you want to consider to analyze L5. The metric of interest need to be calculated in M (see g.part1)

desiredtz
constrain2range
myfun

External function object to be applied to raw data. See details applyExtFunction.

Value

  • output = Dataframe for every epoch a classification

  • detection.failed = Boolean whether detection failed

  • L5list = L5 for every day (defined from noon to noon)