unique_tol | R Documentation |
Get unique 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 corresponding to a single unique value even if not all values in the run are within the tolerance.
unique_tol(x, tol = 1e-06, ties = mean)
x |
a numeric vector in which to identify duplicates |
tol |
numeric tolerance for identifying duplicates |
ties |
a function that is used to summarize groups of values that fall within the tolerance |
a numeric vector of the unique values in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.