Learn R Programming

adehabitatLT (version 0.3.28)

mindistkeep: Detecting Absence of Movement in an Object of Class 'ltraj'

Description

Objects of class ltraj are often created with data collected using some form of telemetry (radio-tracking, G.P.S., etc.). However, the relocations of the monitored animals are always somewhat imprecise. The function mindistkeep considers that when the distance between two successive relocations is lower than a given threshold distance, the animal actually does not move (and replaces the coordinates of relocation i+1 by the coordinates of relocation i).

Usage

mindistkeep(x, threshold)

Value

An object of class ltraj

Arguments

x

An object of class ltraj

threshold

The minimum distance under which is is considered that the animal does not move

Author

Clement Calenge clement.calenge@ofb.gouv.fr

See Also

ltraj

Examples

Run this code
data(puechcirc)
plot(puechcirc)

i <- mindistkeep(puechcirc, 10)
plot(i)

Run the code above in your browser using DataLab