nearest | R Documentation |
Nearest element in vector for a given set of values.
nearest(y, q)
y |
vector to be searched |
q |
vector of values of interest |
indices of the nearest elements in y for a set of values in q.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.