find_neighbor: Find nearest neighbors

Description Usage Arguments

View source: R/find_neighbor.r

Description

find_neighbor finds the closest value index in y for each x, using findInterval. Returns the index to be applied to y that most closely matches x.

Usage

1

Arguments

x

desired values

y

table to search values


benfasoli/uataq documentation built on Sept. 27, 2021, 9:29 p.m.