Learn R Programming

radiant.data (version 1.4.5)

which.pmax: Index of the maximum per row

Description

Index of the maximum per row

Usage

which.pmax(...)

Value

Vector of rankings

Arguments

...

Numeric or character vectors of the same length

Details

Determine the index of the maximum of the input vectors per row. Extension of which.max

See Also

See also which.max and which.pmin

Examples

Run this code
which.pmax(1:10, 10:1)
which.pmax(2, 10:1)
which.pmax(mtcars)

Run the code above in your browser using DataLab