It occured to me: x[max(y)] simple isn't it? -- View this message in context: http://r.789695.n4.nabble.com/Finding-coordinates-for-maximum-of-a-function-tp3355369p3356117.html Sent from the R help mailing list archive at Nabble.com.