Learn R Programming

som.nn (version 1.4.4)

som.nn.max.row: Special version of maximum finder for SOMnn

Description

Returns the index of the column with the maximum value for each row of a data.frame.

Usage

som.nn.max.row(x, strict = 0.8)

Value

index of max value for each row or 0, if more than one element has the same maximum value.

Arguments

x

data.frame or matrix

strict

minimum for max vote

Details

A class is only assigned, if the vote for one class is higher than for all others. If more than one element has the same maximum value, 0 is returned.