Learn R Programming

trip (version 1.1-1)

as.ppp.trip: Coercion between trip objects and spatstat objects

Description

coercion between classes

Usage

## S3 method for class 'trip':
as.ppp(X, ..., fatal)
## S3 method for class 'trip':
as.psp(x, ..., from, to)

Arguments

X,x
trip object
...
Ignored
fatal
Logical value, see Details of as.ppp
from,to
See as.psp

Examples

Run this code
d <- data.frame(x = 1:10, y = rnorm(10), tms = Sys.time() + 1:10, id = gl(2, 5))

coordinates(d) <- ~x+y

tr <- trip(d, c("tms", "id"))

require(spatstat)

as.ppp(tr)

as.psp(tr)

Run the code above in your browser using DataLab