rubitCalcTurning: Resamples tracking data and calculates absolute and relative...

Description Usage Arguments Value See Also Examples

View source: R/calcTurning.R

Description

Calculates turning angle between successive vectors of movement by resampling data to minimise jitter, returning a matrix containing both absolute and relative angles in degrees.

Usage

1
rubitCalcTurning(m, resample = 1)

Arguments

m

a matrix containing processed tracking data outputted by rubitBasic.

resample

the number of seconds over which to resample tracking data and calculate a new trajectory and turning angle from.

Value

A new matrix containing information on turning angles for the inputted area.

See Also

rubitMetrics to understand the different steps of processing.

Examples

1
2
3
data(tenebrio_basic)
### Apply the function over all areas in list
sapply(tenebrio_basic, rubitCalcTurning, resample = 1)

JoGall/rubitrail documentation built on May 7, 2019, 10:53 a.m.