Description Arguments Author(s) Examples
View source: R/closest_value.R
closest_value
returns the numerically closest value in vector 2 for each element of vector 1
vec1 |
vector of numbers to find neighbours for |
vec2 |
vector of numbers to find neighbours from (e.g. the new bins) |
Ren攼㸹 Michel
1 2 3 | a = seq(1,100,2)
b = seq(10,100,10)
closest_value(a,b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.