nearest_pos: looks for the value closest to the provided values, in a...

View source: R/lib_vector.R

nearest_posR Documentation

looks for the value closest to the provided values, in a vector of provided values, return the position

Description

looks for the value closest to the provided values, in a vector of provided values, return the position

Usage

nearest_pos(look_near_these_values, in_these_values)

Arguments

look_near_these_values

look for values close to these

in_these_values

look in this vector

Value

the position of the closest values


jorritvm/jrutils documentation built on Feb. 14, 2023, 11:33 p.m.