Re: [R] Extract specific rows from matrix

2010-12-01 Thread Jorge Ivan Velez
Hi Ali, Check ?split HTH, Jorge On Wed, Dec 1, 2010 at 2:50 PM, Ali S <> wrote: > I have a matrix with 3 years of data (2006, 2009, 2010). I am trying to > split this matrix by year so that I have 3 separate matrices. My matrix > looks like this: > Q16.1 Year Gender Grade1 3 2006

[R] Extract specific rows from matrix

2010-12-01 Thread Ali S
I have a matrix with 3 years of data (2006, 2009, 2010). I am trying to split this matrix by year so that I have 3 separate matrices. My matrix looks like this:     Q16.1 Year Gender Grade1       3 2006      1     52       2 2006      0     53       3 2006      0     54       3 2006      0     5