Extracts the number of duplicated time stamps in a summarised movement trajectory between a `min_time` and `max_time`. Returns the number of duplicated time stamps, total number of duplicates, or maximum number of duplicates.

extract_timestamp_duplicates(
  df,
  min_time = min(df$time),
  max_time = max(df$time),
  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`