Wrapper for the selCollEvents function.

selColl(obj, colldur = c(1, Inf), colltotsz = c(1, Inf))

# S3 method for arcosTS
selColl(obj, colldur = c(1, Inf), colltotsz = c(1, Inf))

Arguments

obj

an arcosTS object.

colldur

a two-element vector of integers with minimum and maximum duration of collective events; default c(1, Inf).

colltotsz

a two-element vector of integers with minimum and maximum total size of collective events; default c(1, Inf).

Value

an arcosTS object

Examples

library(ARCOS)
library(data.table)
 ts = data.table(frame = c(1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5),
                objid = c(1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 4, 1, 4),
                x = c(1, 3, 1.2, 2.5, 3.5, 0.9, 2.6, 2.9, 3.2, 1.1, 2.8, 3.1, 1, 3))

arcosTS(ts,
        colPos = "x",
        col = list(Frame = "frame",
                   IDobj = "objid",
                   RT = NULL,
                   IDcoll = NULL),
        interVal = 1.,
        interType = "fixed")
#> Error in arcosTS(ts, colPos = "x", col = list(Frame = "frame", IDobj = "objid",     RT = NULL, IDcoll = NULL), interVal = 1, interType = "fixed"): argument 3 matches multiple formal arguments

tc = trackColl(ts)
#> Error in UseMethod("trackColl"): no applicable method for 'trackColl' applied to an object of class "c('data.table', 'data.frame')"
tcsel = selColl(tc,
                colldur = c(3,Inf),
                colltotsz = c(3, Inf))
#> Error in selColl(tc, colldur = c(3, Inf), colltotsz = c(3, Inf)): object 'tc' not found