Description Usage Arguments Value Note Examples
Coercion of Track
, Tracks
and TracksCollection
objects
to objects of class ltraj
.
For further details please see the vignette.
1 2 3 4 5 6 7 8 |
obj |
object of class |
Object of class ltraj
The method may be used in two ways: as(obj, "ltraj") or as.ltraj(obj).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Load example toy data
load(system.file("extdata","trajaggr_TestData.RData", package = "trajaggr"), verbose = FALSE)
## Example 1: coerce Track to ltraj
slot(Track_A1, "data")
slot(Track_A1, "time")
ltraj_Tr_A1 <- as(Track_A1, "ltraj")
class(ltraj_Tr_A1)
require(adehabitatLT)
summary(ltraj_Tr_A1)
ltraj_Tr_A1[[1]]
attr(ltraj_Tr_A1[[1]], "infolocs")
##
## Example 2: coerce TracksCollection to ltraj
slot(TrColl, "tracksCollectionData")
ltraj_TrColl <- as(TrColl, "ltraj")
class(ltraj_TrColl)
require(adehabitatLT)
summary(ltraj_TrColl)
slot(TrColl[2][2], "data")
attr(ltraj_TrColl[[4]], "infolocs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.