Learn R Programming

radiant.data (version 1.0.6)

which.pmax: Index of the maximum per row

Description

Index of the maximum per row

Usage

which.pmax(...)

Arguments

...

Numeric or character vectors of the same length

Value

Vector of rankings

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
# NOT RUN {
which.pmax(1:10, 10:1)
which.pmax(2, 10:1)
which.pmax(mtcars)
# }

Run the code above in your browser using DataLab