[R] cut out single lines out of matrix

Schmidt Martin m.schmidt at students.unibe.ch
Wed Mar 17 00:20:49 CET 2010


Hey dear users


I'm trying to kind of split my matrix which looks as follows:
> dim(out)
[1] 30 12

What I finally want is each line as it's own matrix which I can handle  
then separately.
Like, say:
out1<- [1,]
out2<-[2,]
......
Would you do that with a for() loop or does exist an other appropriate  
solution? I unfortunately couldn't find any solution!

Thanks for help



More information about the R-help mailing list