fixLocErr: Correct inconsistent locations in a trajectory table

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fixes.R

Description

This function attempts to automatically detect and correct inconsistent locations (for instance due to a writing error) in trajectory tables.

Usage

1
fixLocErr(traj, s = 15, spline = FALSE)

Arguments

traj

A trajectory data table as produced by the makeTraj function.

s

The discrmination threshold of the outlier detection algorithm. Higher values correspond to less outliers.

spline

If spline is TRUE, inconsistent locations are estimated using spline interpolation. If FALSE (the default), a linear interpolation is used instead.

Value

A trajectory data table as produced by the makeTraj function. If not present, an "error" column will be added that indicates which observations were corrected.

Author(s)

Simon Garnier, [email protected]

See Also

makeTraj, findLocErr

Examples

1
# TODO

swarm-lab/swaRm documentation built on June 22, 2018, 5:21 p.m.