Ah. Close to what David suggested... Try: ?which.max
----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Thu, Apr 22, 2010 at 10:57 PM, tamas barjak <tamas.bar...@gmail.com>wrote: > Of course! > > > max(dbinom(0:20, 20, 0.4)) > [1] 0.1797058 > > > I would like the place of the maximum for this. The value is found, I do > not know it only which index belongs to. > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.