On Mon, Dec 22, 2008 at 7:15 PM, Ranney, Steven <steven.ran...@montana.edu> wrote: > Thank you all for your help. I appreciate the assistance. I'm thinking I > should have been more specific in my original question. > > Unless I'm mistaken, all of the suggestions so far have been for maximum vol > and maximum Length by Lake and psd. I'm trying to extract the max vol by > Lake and psd along with the corresponding value of Length. So, instead of > maximum vol and maximum Length, I'd like to find the max vol and the Length > associated with that value.
Try which.max along with any of the solutions previously mentioned. Hadley -- http://had.co.nz/ ______________________________________________ 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.