Description Usage Arguments Value Note Examples
Coercion of Move
, MoveBurst
and ltraj
objects
to objects of class Track
.
Just ltraj
objects that contain exactly one trajectory may be coerced to Track
objects.
For further details please see the vignette!
1 2 3 4 5 6 7 8 |
obj |
object of class |
Object of class Track
The method may be used in two ways: as(obj, "Track") or as.Track(obj)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # load example data
data(wildboars_4Ind_ltraj)
# check object
class(wildboars_4Ind_ltraj)
# Subset a Track, adehabitatLT required
require(adehabitatLT)
oneLtraj <- wildboars_4Ind_ltraj[1]
class(oneLtraj)
length(oneLtraj)
summary(oneLtraj[[1]])
# Coerce to Track
track <- as(oneLtraj, "Track")
class(track)
slot(track, "data")
slot(track, "connections")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.