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 1 52 2 2006 0 > 53 3 2006 0 54 3 2006 0 55 3 2006 > 1 56 2 2006 0 57 3 2006 0 58 3 > 2006 1 59 3 2006 0 510 3 2006 0 511 > 3 2006 0 512 2 2006 0 5 > Thanks > > > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.