closestMatch | R Documentation |
Find closest match in a vector
closestMatch(x, y)
x |
numeric vector |
y |
vector of numeric values, each of which will be matched with the
closest value in |
numeric vector of values of x
that are closest to each
element of y
x <- seq(1, 5, 0.3)
y <- seq(0, 6, 0.25)
closestMatch(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.