fixMISSING: Interpolate missing data in a trajectory table

Description Usage Arguments Value Author(s) See Also Examples

Description

This function attempts to automatically detect and correct missing data (for instance due to writing errors) in trajectory tables.

Usage

1
fixMissing(traj, begin = NULL, end = NULL, step = NULL, spline = FALSE)

Arguments

traj

A trajectory data table as produced by the makeTraj function.

begin

A full timestamp (date+time) in POSIXct format corresponding to the beginning of the trajectory. If not set, it is set to the first timestamp of the trajectory table.

end

A full timestamp (date+time) in POSIXct format corresponding to the end of the trajectory. If not set, it is set to the last timestamp of the trajectory table.

step

A difftime object representing the time between two consecutive locations of the trajectory. If not set, it is set to the most common time difference between successive locations in traj.

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, findMissing

Examples

1
# TODO

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