dot-minDif: find closest neighbour to numeric vector

.minDifR 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

dist

Examples

.minDif(c(11:15,17))

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.