Learn R Programming

functClust (version 0.1.6)

argmax: Index of the maximum values of a vector

Description

Take a numeric vector and return the index of its maximum values.

Usage

argmax(x)

Arguments

x

a numeric vector.

Value

Return the index of the maximum values of a numeric vector.

Details

The function argmax() works as the standard function which.max().

See Also

argmin, first_argmin, first_argmax