[Rd] Representation of floating point numbers (PR#1281)

David Brahm brahm@alum.mit.edu
Thu, 24 Jan 2002 10:59:21 -0500

Winfried Theis writes:
> My main problem is that I need to find the places of a numerical vector x
> where it equals its maximum, so usually I would do
> x[x==max(x)]

Then you want which.max(x)  [a great function found in R but not S-Plus].
                              -- David Brahm (brahm@alum.mit.edu)
r-devel 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-devel-request@stat.math.ethz.ch