first_argminR Documentation

Index of the first minimum value of a vector

Description

Take a numeric vector and return the index of the first (the lowest index) minimum values.

Usage

first_argmin(x)

Arguments

x

a numeric vector.

Details

The function first_argmin() works as the standard function min(which.min()).

Value

Return the index of the first (the lowest index) minimum values of a numeric vector.

See Also

argmin, argmax, first_argmax