Description Usage Arguments Value Note Examples
Coercion of MoveStack and ltraj objects
to objects of class TracksCollection.
Just ltraj objects that contain trajectories from more than one individual
may be coerced to TracksCollection objects.
For further details please see the vignette!
1 2 3 4 5 | ## S4 method for signature 'MoveStack'
as.TracksCollection(obj)
## S4 method for signature 'ltraj'
as.TracksCollection(obj)
|
obj |
object of class |
Object of class TracksCollection
The method may be used in two ways: as(obj, "TracksCollection") or as.TracksCollection(obj).
1 2 3 4 5 6 7 8 9 10 11 | # load wild boars example data
data(wildboars_4Ind_ltraj)
# check object
class(wildboars_4Ind_ltraj)
length(wildboars_4Ind_ltraj)
require(adehabitatLT)
summary(wildboars_4Ind_ltraj)
# Coerce to TracksCollection
tracksColl <- as(wildboars_4Ind_ltraj, "TracksCollection")
class(tracksColl)
dim(tracksColl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.