[R] index of max value ?

Thomas Lumley tlumley at u.washington.edu
Fri Nov 14 20:28:24 CET 2003


On Fri, 14 Nov 2003 ryszard.czerminski at pharma.novartis.com wrote:

> Is there a function in R, which would return index of maximum value
> in a vector ?
>

Yes.  which.max(), which is mentioned in the See Also section in
help(max).


	-thomas




More information about the R-help mailing list