Rdocumentation
powered by
Learn R Programming
NNTbiomarker (version 0.29.11)
argmin: argmin Argmin function for a vector.
Description
Return the index minimizing distance from v to target.
Usage
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.