On Fri, 14 Nov 2003 ryszard.czerminski at pharma.novartis.com wrote: > Is there a function in R, which would return index of maximum value > in a vector ? > Yes. which.max(), which is mentioned in the See Also section in help(max). -thomas