Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Details

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

Value

Vector of rankings

See Also

See also which.max and which.pmin

Examples

which.pmax(1:10, 10:1)
which.pmax(2, 10:1)
which.pmax(mtcars)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.