as.Track.ppp: Conver trajectory pattern to a list of objects of class ppp

View source: R/Trackstat.R

as.Track.pppR Documentation

Conver trajectory pattern to a list of objects of class ppp

Description

This function converts a list of Tracks to a list of point patterns (class "ppp")

Usage

as.Track.ppp(X,timestamp)

Arguments

X

a list of Track objects

timestamp

based on secs, mins,...

Details

as.Track.ppp converts a list of Track objetcs to a list of ppp objetcs.

Value

A list of point patterns, objects of class "ppp".

Author(s)

Mohammad Mehdi Moradi <moradi@uji.es>

See Also

avedistTrack, as.ppp

Examples

if (require(spatstat.geom)) {
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.ppp(X,timestamp="120 secs")
}

trajectories documentation built on Sept. 11, 2024, 8:48 p.m.