as.trip | R Documentation |
trip
objectsCoercing objects to trip
class
as.trip(x, ...)
x, |
ltr ltraj object |
... |
Arguments passed to other methods. Ignored for |
S4 trip object
signature(from="ltraj", to="trip")
signature(x="ltraj")
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.