Skip to content

matrix Manipulation...

2 messages · Jim Silverton, Sarah Goslee

#
It's very easy to do in two steps:
[,1] [,2] [,3] [,4] [,5]
[1,]  0.2  0.3    1 -1.0    3
[2,]  0.2  0.4    5  0.5   -1
[,1] [,2] [,3] [,4] [,5]
[1,]  0.2  0.3    1  0.0    1
[2,]  0.2  0.4    1  0.5    0

This is pretty basic. You might want to read one of the many excellent
intro to R guides, especially the subsetting section.

Sarah
On Wed, May 25, 2011 at 2:51 PM, Jim Silverton <jim.silverton at gmail.com> wrote: