Try split(x, row(x))
-Christos > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Johannes Graumann > Sent: Friday, March 09, 2007 10:30 AM > To: [email protected] > Subject: [R] Matrix conversion question > > Hello, > > Please help - I'm blanking on this ... > > I have a matrix like this: > > [,1] [,2] > [1,] 1 2 > [2,] 1 3 > [3,] 2 3 > > and would like to have a list of vectors, where a vector > contains the entries in a matrix row ... > > Can somebody nudge me to the place I need to go? > > Thanks, Joh > > ______________________________________________ > [email protected] 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. > > ______________________________________________ [email protected] 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.
