.minDif | R Documentation |
This function aims to find closest neighbour to numeric vector
.minDif(z, initOrder = TRUE, rat = TRUE)
z |
(numeric) vector to search minimum difference |
initOrder |
(logical) return matrix so that 'x' matches exactely 2nd col of output |
rat |
(logical) express result as ratio |
This function returns a matrix with index,value,dif,best
dist
.minDif(c(11:15,17))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.