Learn R Programming

move (version 1.0)

burst: Bursting a track

Description

Bursting a track by specified variable

Usage

## S3 method for class 'Move,character':
burst(x, f, ...)

Arguments

x
a Move object
f
a character, factor, or numeric that indicates how to burst the coordinates of a Move object. It must be one shorter than the number of locations, because there are always one less segments of a track than coordinates
...
not used

Details

The burst function bursts (divides) a track in segments that are specified by the burstIDs (e.g. behavioral annotations). It allows to investigate different parts of a track according to supplied variables like day and night, movement and rest, and so on.

Examples

Run this code
test <- move(system.file("extdata","leroy.csv.gz", package="move"))
behav <- c(rep(1:4,each=200), rep(5, 118))
testb <- burst(x=test, f=behav)
head(testb)

Run the code above in your browser using DataLab