Extracts the number of duplicated time stamps in a summarised movement trajectory between a min_time and max_time. Use summarise_movement(). Duplicated timestamps indicate an aborted trial - not tracker error.

extract_timestamp_duplicates(
  df,
  min_time = min(df$time, na.rm = TRUE),
  max_time = max(df$time, na.rm = TRUE),
  method = "max"
)

Arguments

df

A summarised movement data frame (must contain a column n)

min_time

Minimum time within the ref_movement (taken from "time" column) to search.

max_time

Maximum time within the ref_movement (taken from "time" column) to search.

method

whether to extract maximum number of duplicates (max, default), total number of duplicates (total), or the number of duplicated time stamps (number)

Value

Numeric, depending on method

Details

Returns the number of duplicated time stamps, total number of duplicates, or maximum number of duplicates.