Description Usage Arguments Value Author(s) Examples
Find the index for a value (or values) in a vector nearest one provided
1 | findNearest(x, value, na.val=-9999)
|
x |
vector in which the value is searched |
value |
single value or vector of values for which the index in
|
na.val |
replacement value for NAs in |
The index (or indices) for the value of x
nearest value
.
Clark Richards
1 | findNearest(1:10, 5.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.