📄 which.is.max.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Find Maximum Position in Vector</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for which.is.max {nnet}"><tr><td>which.is.max {nnet}</td><td align="right">R Documentation</td></tr></table>
<h2>Find Maximum Position in Vector</h2>
<h3>Description</h3>
<p>
Find the maximum position in a vector, breaking ties at random.
</p>
<h3>Usage</h3>
<pre>
which.is.max(x)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
a vector
</td></tr>
</table>
<h3>Details</h3>
<p>
Ties are broken at random.
</p>
<h3>Value</h3>
<p>
index of a maximal value.</p>
<h3>References</h3>
<p>
Venables, W. N. and Ripley, B. D. (2002)
<EM>Modern Applied Statistics with S.</EM> Fourth edition. Springer.
</p>
<h3>See Also</h3>
<p>
<code><a href="../../base/html/maxCol.html">max.col</a></code>, <code><a href="../../base/html/which.min.html">which.max</a></code> which takes the first of ties.
</p>
<h3>Examples</h3>
<pre>
## Not run:
pred <- predict(nnet, test)
table(true, apply(pred,1,which.is.max))
## End(Not run)</pre>
<hr><div align="center">[Package <em>nnet</em> version 7.2-44 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -