Learn R Programming

stlnpp (version 0.3.8)

as.lpp.stlpp: Methods for space-time point patterns on a linear network.

Description

This function projects an object of class stlpp to a linear network.

Usage

# S3 method for stlpp
as.lpp(x,...)

Value

An object of class lpp.

Arguments

x

an object of class stlpp

...

arguments passed to as.lpp

Author

Mehdi Moradi <m2.moradi@yahoo.com>

Details

This function projects the space-time point pattern x on linear network L into L, giving its corresponding spatial point pattern.

See Also

as.stlpp, lpp, as.lpp

Examples

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

Run the code above in your browser using DataLab