as.stlpp {stlnpp}R Documentation

Convert data to a spatio-temporal point pattern on a linear network

Description

This function converts data to a spatio-temporal point pattern on a linear network.

Usage

as.stlpp(x,y,t,L)

Arguments

x, y, t

vectors of Cartesian coordinates and time occurrence. Alternatively, x can be of classes data.frame, ppp and lpp

L

linear network (object of class linnet)

Details

This function converts data to an object of class stlpp. Data can be of formats:

Value

A spatio-temporal point pattern on a linear network. An object of class stlpp.

Author(s)

Mehdi Moradi <m2.moradi@yahoo.com>

See Also

stlpp

Examples

 
data(easynet)
x <- runifpointOnLines(40, easynet)
t1 <- sample(1:10,40,replace=TRUE)
Y <- as.stlpp(x,t=t1,L=easynet)

Z <- as.lpp.stlpp(Y)
t2 <- sample(1:10,40,replace=TRUE)
W <- as.stlpp(Z,t=t2)


[Package stlnpp version 0.4.0 Index]