altr {adehabitat}R Documentation

Attach or Detach Bursts in Objects of Class 'ltraj' to Search Path

Description

The burst in the object of class ltraj is attached to the R search path. This means that the parameters describing the movement are searched by R when evaluating a variable, so parameters can be accessed by simply giving their names.

Usage

altr(object, bu = burst(object)[1])
dltr(object, bu = burst(object)[1])

Arguments

object object of class ltraj
bu a character string indicating the name of the burst to be attached or detached

Value

The 'environment' is returned invisibly with a '"name"' attribute.

Author(s)

Clement Calenge clement.calenge@oncfs.gouv.fr

See Also

attach

Examples

## Not run: 
data(ibex)

altr(ibex)
plot(dt, dist)
dltr(ibex)

altr(ibex, bu = "A160")
hist(rel.angle)
dltr(ibex, bu = "A160")

## same as
altr(ibex, 2)
hist(rel.angle)
dltr(ibex, 2)
## End(Not run)

[Package adehabitat version 1.8.3 Index]