Track collective events
trackColl(obj, eps = 1, minClSz = 1L, nPrev = 1L, epsPrev = NULL, deb = FALSE)
# S3 method for arcosTS
trackColl(obj, eps = 1, minClSz = 1L, nPrev = 1L, epsPrev = NULL, deb = FALSE)
an arcosTS object.
a numeric, sets the search radius for spatial clustering with dbscan; default 1.
an integer, minimum cluster size for dbscan; default 1L.
an integer, number of previous frames to link; default 1L.
a float with the search radius for linking clusters between frames, default NULL means that epsPrev = eps.
boolean, additional debug output; default FALSE.
an arcosTS object
Wrapper for the trackCollEvents
function.
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')"