Dear R experts, How to find out the index of minimum or maxmum number in a vetor or data.frame?
For example, a= n price 1 50 -2 100 0 200 -1 300 ...... I want to find out the row which the n is the smallest or largestest and extract the price. Thanks Ted -- View this message in context: http://www.nabble.com/find-the-index-of-the-smallest-or-biggest-number-in-a-vetor-or-data.frame-tp22599905p22599905.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.