missing_data {trackdf} | R Documentation |
Find Missing Data in a Track Table
Description
This function attempts to automatically detect missing data (for
instance due to writing errors) in track
tables.
Usage
missing_data(x, begin = NULL, end = NULL, step = NULL)
Arguments
x |
|
begin |
A full time stamp (date+time) in |
end |
A full time stamp (date+time) in |
step |
A |
Value
A track table of all observations with missing data. The missing data
is indicated with NA
.
Author(s)
Simon Garnier, garnier@njit.edu
See Also
Examples
# Create data set with missing time stamps
data(short_tracks)
t_df <- track(x = short_tracks$x, y = short_tracks$y, t = short_tracks$t,
id = short_tracks$id, proj = "+proj=longlat",
tz = "Africa/Windhoek", table = "df")
t_df <- t_df[-c(10, 100), ]
# Find missing data
missing <- missing_data(t_df)