which.is.max
Find Maximum Position in Vector Find the maximum position in a vector, breaking ties at random.
which.is.max(x)
x | a vector |
Ties are broken at random.
index of a maximal value.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
max.col
, which.max
which takes the first of ties.
## Not run: ## this is incomplete pred <- predict(nnet, test) table(true, apply(pred, 1, which.is.max)) ## End(Not run)
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.