Learn R Programming

radiant.data (version 1.6.3)

which.pmin: Index of the minimum per row

Description

Index of the minimum per row

Usage

which.pmin(...)

Value

Vector of rankings

Arguments

...

Numeric or character vectors of the same length

Details

Determine the index of the minimum of the input vectors per row. Extension of which.min

See Also

See also which.min and which.pmax

Examples

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

Run the code above in your browser using DataLab