Rdocumentation
powered by
Learn R Programming
JBTools (version 0.7.2.9)
whichClosest: Find closest matches in two vectors
Description
Function to find closest matches of vector A in vector B and return the respective indices.
Usage
whichClosest(x, x.match, arr.ind = FALSE)
Arguments
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
Value