which.is.max {nnet} | R Documentation

## Find Maximum Position in Vector

### Description

Find the maximum position in a vector, breaking ties at random.

### Usage

    which.is.max(x)

### Arguments

`x` | a vector

### Details

Ties are broken at random.

### Value

index of a maximal value.

### See Also

`max.col` in library MASS.

### Examples

    pred <- predict(nnet, test)
    table(true, apply(pred,1,which.is.max))