argmin {NNTbiomarker} | R Documentation |
Return the index minimizing distance from v to target.
argmin(v, target = 0)
v |
The vector to compare to target. |
target |
The value sought in the vector; default=0. |
The index in v of the value which is closest to target.