max.col {MASS}R Documentation

Find Maximum Position in Matrix

Description

Find the maximum position for each row of a matrix, breaking ties at random.

Usage

max.col(A)

Arguments

A a matrix

Details

Ties are broken at random. The determination of 'tie' assumes that the entries are probabilities.

Value

index of a maximal value for each row.


[Package Contents]