Skip to content
Prev 247584 / 398503 Next

How to doulbe all the value on a matrix

You have the capability of using the Nabble interface to post plain  
text. I have checked. There is a little button above your composition  
frame that lets you change to plain text.
On Jan 17, 2011, at 4:38 PM, Andr? Dias wrote:

            
Peter B already gave you an answer.

 > m[c(2,7, 8), c(1,4,6, 7)]
      V1 V4 V6 V7
[1,]  7  3 16  9
[2,]  3  2  9 18
[3,] 13 16  8  9
Then you should have presented the logical conditions for selecting  
that matrix rather than expecting us to guess what they might be.  
Please (re?)read the Posting Guide about what is expected of  
questioners regarding presenting complete examples of data and code.