duplicated_tol {distfromq} | R Documentation |
Identify duplicated values in a sorted numeric vector, where comparison is up to a specified numeric tolerance. If there is a run of values where each consecutive pair is closer together than the tolerance, all are labeled as duplicates even if not all values in the run are within the tolerance.
Description
Identify duplicated values in a sorted numeric vector, where comparison is up to a specified numeric tolerance. If there is a run of values where each consecutive pair is closer together than the tolerance, all are labeled as duplicates even if not all values in the run are within the tolerance.
Usage
duplicated_tol(x, tol = 1e-06, incl_first = FALSE)
Arguments
x |
a numeric vector in which to identify duplicates |
tol |
numeric tolerance for identifying duplicates |
incl_first |
boolean indicator of whether or not the first entry in a
run of duplicates should be indicated as a duplicate. |
Value
a boolean vector of the same length as x
[Package distfromq version 1.0.4 Index]