Description Usage Arguments Author(s) See Also Examples
View source: R/which.closest.R
Returns index of the closest value to x
.
1 | which.closest(vec, x)
|
vec |
a numeric vector. |
x |
numeric. The value for which the closest match should be returned. |
Matthew A. Birk, matthewabirk@gmail.com
1 | which.closest(10:1, 3.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.