selColl: Select collective events

selCollR Documentation

Select collective events

Description

Wrapper for the selCollEvents function.

Usage

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

## S3 method for class '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")

tc = trackColl(ts)
tcsel = selColl(tc,
                colldur = c(3,Inf),
                colltotsz = c(3, Inf))

dmattek/ARCOS documentation built on Dec. 5, 2024, 11:02 p.m.