where.max {plsdof}R Documentation

Compute argmax of a vector

Description

This function computes the argmax of a matrix.

Usage

where.max(M)

Arguments

M matrix

Details

The function returns the row and the column index of the argmax of M.

Value

vector that contains the row index and the column index

Author(s)

Nicole Kraemer

Examples

M<-matrix(sample(20),ncol=4)
index<-which.max(M)

[Package plsdof version 0.1-1 Index]