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

findMissing(x, begin = NULL, end = NULL, step = NULL)

Arguments

x

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.

Value

A data frame with 2 columns:

  • "time": the missing timestamp.

  • "type": "MISSING" if the corresponding observation was not recorded; "NA" if the corresponding observation was replaced by NA during the data recording or importing process.

See also

Examples

# TODO