Learn R Programming

functClust (version 0.1.6)

first_argmax: Index of the first maximum value of a vector

Description

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

Usage

first_argmax(x)

Arguments

x

a numeric vector.

Value

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

Details

The function first_argmax() works as the standard function min(which.max()).

See Also

argmin, first_argmin, argmax