Learn R Programming

trip (version 1.1-1)

as.ltraj.trip: Coercion between trip objects and ltraj objects

Description

coercion between classes

Usage

as.ltraj.trip(xy, typeII = TRUE, slsp = "remove")
ltraj2trip(ltr)

Arguments

xy
trip object
typeII
slsp
details for the ltraj turning angles
ltr
ltraj object

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(adehabitat)
l <- as.ltraj.trip(tr)

ltraj2trip(l)

Run the code above in your browser using DataLab