Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.


NNTbiomarker

Calculate Design Parameters for Biomarker Validation Studies

v0.29.11
GPL-3
Authors
Roger Day
Initial release
2015-08-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.