which_min2: Generalized which.min(). Returns the index of the cell or...

View source: R/simple_math.R

which_min2R Documentation

Generalized which.min(). Returns the index of the cell or number with the lowest value.

Description

A generalization of which.min() that works on matrices and data.frames too.

Usage

which_min2(x)

Arguments

x

a numeric vector, matrix or data.frame.

Examples

m = matrix(runif(9), nrow=3)
m
which_min2(m)

Deleetdk/kirkegaard documentation built on April 1, 2024, 2:23 a.m.