Not intended for direct use by GGIR users. Adds the sustained inactivity bout to the ts series as part of g.part5.
g.part5.addsib(ts, epochSize, part3_output, desiredtz,
sibDefinition, nightsi)
Data.frame ts
Data.frame object as passed on from g.part5
Short epoch size in seconds
Segment of part 3 output relevant for current sleep definition
see GGIR
Character to indicate definition of sib (sustained inactivity bout)
Vector with indices for the midnights
Vincent T van Hees <v.vanhees@accelting.com>