which.best.match: which.best.match

Description Usage Arguments Value Examples

Description

matches values to ones from a given nominal vector by their closest distance to it.

Usage

1
which.best.match(actual, nominal)

Arguments

actual

value or vector. the values to be matched

nominal

value or vector. the values to be matched against

Value

vector of indices. indeices of matched values in nominal. values are matched by their minimal absolut distance to its target.

Examples

1
plot( which.best.match( dnorm( .05 * -100:100 ), seq( 0, 1, by = .1 ) ) )

TPeschel/hlpr4gamlss documentation built on May 28, 2019, 5:39 a.m.