[ top | up ]
Find Maximum Position in Vector or Matrix
Usage
which.is.max(x)
max.col(A)
Arguments
Description
Ties are broken at random.
Value
index of a maximal value (for each row in the case of max.col
).
Examples
pred <- predict(nnet, test)
table(true, apply(pred,1,which.is.max))