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

as.tripR 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)
}

trip documentation built on July 9, 2023, 7:29 p.m.