impute_time() imputes datetime for gaps in GPS data. Gaps in time may result from filtering of invalid GPS data or because the GPS logger goes into 'sleep' mode (i.e. Columbus GPS logger). Datetime rows are added to the input data frame under the specified datetime column (dt_field) to fill gaps between time stamps. The sampling interval is automatically calculated.

impute_time(df, dt_field = NULL)

Arguments

df

a data frame with a datetime field.

dt_field

character; name of datetime field.

Value

data frame.

Details

impute_coords() can be used in conjunction with impute_time() to assign latitude and longitude to the added time stamps/rows.

Examples

if (FALSE) {
impute_time(df, dt_field = 'Date_Time') %>%
  impute_coords()
}