selColl | R Documentation |
Wrapper for the selCollEvents
function.
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))
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). |
an arcosTS object
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.