From brahm@alum.mit.edu  Thu Jan 24 15:59:21 2002
From: brahm@alum.mit.edu (David Brahm)
Date: Thu, 24 Jan 2002 10:59:21 -0500
Subject: [Rd] Representation of floating point numbers (PR#1281)
In-Reply-To: <XFMail.020124151558.theis@statistik.uni-dortmund.de>
References: <Pine.LNX.4.33.0201241512580.5000-100000@tal.stat.umu.se>
 <XFMail.020124151558.theis@statistik.uni-dortmund.de>
Message-ID: <15440.12121.742575.747387@gargle.gargle.HOWL>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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