Learn R Programming

GGIR (version 3.4-0)

detectTypeBouts: Detect bouts for each type as produced by external function

Description

Detect bouts for each type produced by an external function. Bout detection is done with g.getbout using the tbout.dur and tbout.criter parameters that may be specified in myfun.

Usage

detectTypeBouts(myfun, varnum_type, 
                   daysummary, ds_names,
                   di, fi, ws3, boutnameEnding)

Value

A list containing the updated daysummary, ds_names, fi, and di objects.

Arguments

myfun

See GGIR

varnum_type

Vector (usually of class factor) containing the type metric as produced by the external function.

daysummary

Matrix with preliminary day summary.

ds_names

Daysummary column names

di

Row index of daysummary representing the recording day

fi

Column index of daysummary

ws3

Numeric epochsize in seconds of the timeseries

boutnameEnding

Character with ending suffix to be pasted to the bout variable names, indicating the segment of the day over which the bouts have been calculated.

Author

Vincent T van Hees <[email protected]> Jairo H Migueles <[email protected]>