minindexmatrix {tslars}R Documentation

Function that returns the row and column where the matrix reaches its minimum

Description

To find the row and column where a matrix reaches its minimum.

Usage

minindexmatrix(x)

Arguments

x A matrix

Value

A vector of length two is returned, of which the first (second) element indicates at which row (column) the matrix x reaches its minimum.

Author(s)

Sarah Gelper

See Also

which.min

Examples

a <- matrix(rnorm(20),ncol=4)
m <- minindexmatrix(a)

[Package tslars version 1.0 Index]