argmin: argmin Argmin function for a vector.

Description Usage Arguments Value

View source: R/argmin.R

Description

Return the index minimizing distance from v to target.

Usage

1
argmin(v, target = 0)

Arguments

v

The vector to compare to target.

target

The value sought in the vector; default=0.

Value

The index in v of the value which is closest to target.


NNTbiomarker documentation built on May 1, 2019, 11:15 p.m.