Description Usage Arguments Value Note Examples
Coercion of MoveBurst, MoveStack and ltraj objects
to objects of class Tracks.
Just ltraj objects that contain more than one trajectory of one individual may be coerced to Tracks objects.
For further details please see the vignette!
1 2 3 4 5 6 7 8 |
obj |
object of class |
Object of class Tracks
The method may be used in two ways: as(obj, "Tracks") or as.Tracks(obj).
1 2 3 4 5 6 7 8 9 10 | ## load pigeons example data
data(pigeon_R_moveStack)
class(pigeon_R_moveStack)
unique(slot(pigeon_R_moveStack, "trackId"))
length(pigeon_R_moveStack)
# coerce to Tracks
pigeon_R_Trcs <- as.Tracks(pigeon_R_moveStack)
class(pigeon_R_Trcs)
dim(pigeon_R_Trcs)
names(slot(pigeon_R_Trcs, "tracks"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.