Re: [R] Return the matrix location of multiple entries

2012-01-23 Thread connollj
Thanks so much folks. These have all been very helpful!! Thanks again, Jess -- View this message in context: http://r.789695.n4.nabble.com/Return-the-matrix-location-of-multiple-entries-tp4321412p4321915.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Return the matrix location of multiple entries

2012-01-23 Thread connollj
Michael, That's perfect. Thank you so much, I've been struggling with this for days! Jess -- View this message in context: http://r.789695.n4.nabble.com/Return-the-matrix-location-of-multiple-entries-tp4321412p4321503.html Sent from the R help mailing list archive at Nabble.com. _

[R] Return the matrix location of multiple entries

2012-01-23 Thread connollj
Hello! I'm working with a matrix called 'subER'. This matrix has 150(=h) rows and 15 columns. What I would like to do is have a command that will identify the minimum 4 values in each row and return the column numbers where these values were found. My hope is to store this information in a new 15