Re: [R] help: how to get the position of a value in a matrix

From: Simon Blomberg <blomsp_at_ozemail.com.au>
Date: Thu 14 Jul 2005 - 09:41:01 EST

See ?which Hint: arr.ind=TRUE

Simon.

At 09:28 AM 14/07/2005, wu sz wrote:
>Hello,
>
>I have a data set matrix of 1200 * 15. How can I get the position of a
>specific value in the matrix?
>
>I use "seq(along = x)[x > value]" to look for the position of the
>value in the matrix, but "seq" can just find the sequence position row
>by row in the matrix, not a real position (like "rowNumber,
>colNumber"). Is any function for that?
>
>Thank you,
>Shengzhe
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 14 09:44:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:38 EST