timeLag: Calculates the time lags between the coordinates

Description Usage Arguments Details Value Author(s) Examples

Description

The timeLag function calculates the time lags between locations.

Usage

1
2
3
4
  ## S4 method for signature '.MoveTrackSingle'
timeLag(x,...)
  ## S4 method for signature '.MoveTrackStack'
timeLag(x,units, ...)

Arguments

x

a Move or MoveStack object

units

The units used for the conversion, they need to be specified for a stack to ensure similair units between individuals

...

further arguments

Details

Optionally the argument units can be passed on to ensure the time lag in a certain unit, this is especially useful in case a move stack is bursted. For more information on the units argument see the help of difftime.

Value

The function returns a numeric vector with the time lags.

Author(s)

Bart Kranstauber

Examples

1
2
3
4
5
6
data(fishers)
data(leroy)

head(timeLag(leroy,units="mins")) #calculate timelags for a Move object
head(timeLag(fishers,units="mins")) #calculate timelags for a MoveStack object
head(timeLag(fishers, units="hours")) #calculate timelags in different units

move documentation built on Jan. 16, 2017, 2:22 a.m.