This function attempts to automatically detect and correct duplicated timestamps in trajectory tables. If it cannot correct a duplicated timestamp, it replaces it with NA.

fixTimeDup(x, step = NULL)

## Arguments

x A trajectory data table as produced by the makeTraj function. 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.

## 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, findTimeDup
# TODO