Description Usage Arguments Value Author(s)
Function to find closest matches of vector A in vector B and return the respective indices.
1 | whichClosest(x, x.match, arr.ind = FALSE)
|
x |
numeric vector: values that should be found in x.match |
x.match |
numeric vector: values the values of x should be matched against |
arr.ind |
integer vector: indices of the closest element of x.match to each entry in x
Jannis v. Buttlar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.