Learn R Programming

plotrix (version 3.8-4)

find_max_cell: Maximum (or minimum) value cell in a matrix.

Description

Find the indices of the maximum value in a matrix.

Usage

find_max_cell(x,max=TRUE)

Value

A list containing the column (x) and row (y) indices.

Arguments

x

a numeric matrix

max

The default is to return the indices of the maximum value(s). max=FALSE returns those of the minimum.

Author

Jim Lemon