dot-find_near_duplicates.aidR: Find near-duplicate entries from different formats

.find_near_duplicates.aidRR Documentation

Find near-duplicate entries from different formats

Description

Find near-duplicate entries from different formats

Usage

.find_near_duplicates.aidR(
  df,
  col,
  tol,
  max_minutes = 5,
  col2 = NULL,
  tol2 = NULL
)

Arguments

df

A data frame with the cleaned data of one data type, sorted by timestamp.

col

Name of the column holding the value.

tol

Maximum difference in value between two near-duplicates.

max_minutes

Maximum time difference (in minutes) between two near-duplicates.

col2

Optional name of a second column that must match as well (e.g. the duration of basal entries), or NULL.

tol2

Maximum difference in col2 between two near-duplicates.

Value

A list with the row indices of the entries to remove (remove) and of the entry kept instead of each (keep).


aidR documentation built on Oct. 28, 2026, 5:13 p.m.