Description Usage Arguments Details Value See Also
closest
- takes a numeric vector or single value and
finds the index of closest matching value(s) in a different vector.
1 | closest(this, there)
|
this |
numeric. Vector or value. The value(s) to match. |
there |
numeric. The vector in which to find closest matching value(s). |
Finds the index (i.e. position(s)) of the closest matching value(s) of the input(s) in a vector
Index of where closest matching value(s) occur in the target vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.