as.MoveBurst: Coercion to 'MoveBurst' objects

Description Usage Arguments Value Note Examples

Description

Coercion of Tracks objects to objects of class MoveBurst.

For further details please see the vignette!

Usage

1
2
## S4 method for signature 'Tracks'
as.MoveBurst(obj)

Arguments

obj

object of class Tracks

Value

Object of class MoveBurst

Note

The method may be used in two ways: as(obj, "MoveBurst") or as.MoveBurst(obj).

The coercion to MoveBurst objects just works if the package move or at least the package sp is explicitly loaded.

Examples

1
2
3
4
5
6
7
8
9
## Load example toy data
load(system.file("extdata","trajaggr_TestData.RData", package = "trajaggr"), verbose = FALSE)
## Coerce Tracks to MoveBurst
require(move)
moveB_Trcs_A <- as.MoveBurst(Tracks_A)
class(moveB_Trcs_A)
slot(moveB_Trcs_A, "data")
slot(Tracks_A[1], "data")
slot(Tracks_A[2], "data")

roland-h/trajaggr documentation built on Jan. 19, 2021, 1:02 p.m.