# which.is.max

From nnet v7.3-9
by Brian Ripley

##### Find Maximum Position in Vector

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

- Keywords
- utilities

##### Usage

`which.is.max(x)`

##### Arguments

- x
- a vector

##### Details

Ties are broken at random.

##### Value

- index of a maximal value.

##### References

Venables, W. N. and Ripley, B. D. (2002)
*Modern Applied Statistics with S.* Fourth edition. Springer.

##### See Also

##### Examples

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

*Documentation reproduced from package nnet, version 7.3-9, License: GPL-2 | GPL-3*

### Community examples

Looks like there are no examples yet.