Learn R Programming

trip (version 1.1-1)

as.SpatialLinesDataFrame.trip: Coercion from trip objects to other classes

Description

Coercing trip objects to other classes.

Usage

as.SpatialLinesDataFrame.trip(from)
as.ltraj.trip(xy, typeII=TRUE, slsp="remove")

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

Arguments

from
trip object for as.SpatialLinesDataFrame.trip, but see as.psp for that method.
X, x, xy
trip object.
typeII
slsp
details for the ltraj turning angles.
...
Ignored.
fatal
Logical value, see Details of as.ppp.
to
See as.psp.

Examples

Run this code
## Continuing the example from '?trip-methods:
utils::example("trip-methods", package="trip",
               ask=FALSE, echo=FALSE)

as.SpatialLinesDataFrame.trip(tr)
as(tr, "SpatialLinesDataFrame")

if (require(adehabitatLT)) {
    as.ltraj.trip(tr)
}

as.ppp(tr)
as.psp(tr)

Run the code above in your browser using DataLab