Find Maximum Position in Vector
DESCRIPTION:
Find the maximum position in a vector, breaking ties at random.
USAGE:
which.is.max(x)
REQUIRED ARGUMENTS:
- x
-
a vector
VALUE:
index of a maximal value.
DETAILS:
Ties are broken at random.
SEE ALSO:
in library MASS.
EXAMPLES:
pred <- predict(nnet, test)
table(true, apply(pred,1,which.is.max))