whichClosest: Find closest matches in two vectors

Description Usage Arguments Value Author(s)

Description

Function to find closest matches of vector A in vector B and return the respective indices.

Usage

1
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

integer vector: indices of the closest element of x.match to each entry in x

Author(s)

Jannis v. Buttlar


JBTools documentation built on May 2, 2019, 8:20 a.m.