.minDif {wrMisc} | R Documentation |
find closest neighbour to numeric vector
Description
This function aims to find closest neighbour to numeric vector
Usage
.minDif(z, initOrder = TRUE, rat = TRUE)
Arguments
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 |
Value
This function returns a matrix with index,value,dif,best
See Also
Examples
.minDif(c(11:15,17))
[Package wrMisc version 1.15.1 Index]