Hi R-friends around world!
  I have a matrix that looks like bellow one.
Each cell are filled with values 0, 1 or 2.
In fact I have a lot of 512x512 matrices, with
values varying from 0 to 999.
  I need to retrieve the left and right columns
and the top and botton lines of the matrix
where occours for example the value 2. 
Column and row labels are included at the example.
   
    1234567890
1 0000000000
2 0000011100
3 0000011100
4 0000000000
5 0022200000
6 0002220000
7 0022222200
8 0000000000
   
  At this example, the right answer are:
  collumns 3 and 8
  lines 5 and 7
  Any idea of how can I solve this?
  Kind regards,
  Miltinho

 		
---------------------------------

 Música para ver e ouvir: You're Beautiful, do James Blunt
	[[alternative HTML version deleted]]

