Skip to content
Prev 9152 / 398502 Next

Trying to avoid a loop

Wow.  That was a quick reply. Thanks...  but see below.

Michael J. Roberts
Resource Economics Division, PMT
USDA-ERS
202-694-5557
On Tue, 23 Jan 2001, Michael Roberts wrote:

            
would
which
apply(z,c(1,2),max)

This is close, but not exactly what I am looking for.  I don't want
the maximum value, but the position of the maximum value.  Is there
something like an "argmax" I could put in for max?

Thanks a lot
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._