Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070404/3a743baa/attachment.pl
On 4/4/07, croero at hotmail.com <croero at hotmail.com> wrote:> Hello, > > Is there any function "argmax" in R ? > > For example, if I have the vector x=c(1,4,15,7,6), max(x)=15. > But I need a function f such that f(x)=3, 3 being the number where 15 is.which.max