as.trip {trip}R Documentation

Coercion from other classes to trip objects

Description

Coercing objects to trip class

Usage

as.trip(x, ...)

Arguments

x

ltr ltraj object

...

Arguments passed to other methods. Ignored for ltraj method.

Value

S4 trip object

Methods

coerce

signature(from="ltraj", to="trip")

as.trip

signature(x="ltraj")

Examples

 d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5))
tr <- trip(d)
if (require(adehabitatLT)) {
    l <- as(tr, "ltraj")
    ltraj2trip(l)
    as.trip(l)
}

[Package trip version 1.10.0 Index]