Learn R Programming

trip (version 1.1-1)

as.trip-methods: Coercion from other classes to trip objects

Description

Coercing objects to trip class

Usage

ltraj2trip(ltr)

## S3 method for class 'ltraj':
as.trip(x, \ldots)

Arguments

x, ltr
ltraj object
...
Arguments passed to other methods. Ignored for ltraj method.

Examples

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

if (require(adehabitatLT)) {
    l <- as.ltraj.trip(tr)
    ltraj2trip(l)
    as.trip(l)
}

Run the code above in your browser using DataLab