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

fixLocErr(x, s = 15, spline = FALSE)

## Arguments

x A trajectory data table as produced by the makeTraj function. The discrmination threshold of the outlier detection algorithm. Higher values correspond to less outliers. 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.

makeTraj, findLocErr
# TODO