Skip to content
Back to formatted view

Raw Message

Message-ID: <15440.12121.742575.747387@gargle.gargle.HOWL>
Date: 2002-01-24T15:59:21Z
From: David Brahm
Subject: Representation of floating point numbers (PR#1281)
In-Reply-To: <XFMail.020124151558.theis@statistik.uni-dortmund.de>

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