as.Track.arrow: Convert trajectory pattern to a list of marked point patterns

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Trackstat.R

Description

Converting a list of Track objects to a list of marked point patterns. Each mark shows the length of movement.

Usage

1
as.Track.arrow(X,timestamp,epsilon=epsilon)

Arguments

X

A list of Track objects

timestamp

based on secs, mins,...

epsilon

(optional) movements with length less than epsilon are not considered in the calculation

Details

Converting a list of Track objetcs to a list of marked point patterns. Marks show the length of movement with respect to the previous location.

Value

a list of marked point patterns.

Author(s)

Mohammad Mehdi Moradi <moradi@uji.es>

See Also

rTrack, as.Track.ppp

Examples

1
2
3
4
5
6
X <- list()
for(i in 1:10){
  m <- matrix(c(0,10,0,10),nrow=2,byrow = TRUE)
  X[[i]] <- rTrack(bbox = m,transform = TRUE)
}
Y <- as.Track.arrow(X,timestamp="120 secs")

trajectories documentation built on March 16, 2021, 5:09 p.m.