These function provide different utilities to perform approximate matching of numbers.
numeric scalar. Value to be approximatly matched.
numeric vector of values to be matched with
numeric scalar giving the maximum difference in absolute value to perform a match.
Proximity is calculated by the absolute value of the difference.
closest returns a logical vector the same length as
TRUE for the closest match(es) within
tol bounds and
Antoine Filipovic Pierucci
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.