Skip to content
Prev 59802 / 398502 Next

Creating lists from matrices

Hi Alexander,

you could try this:

(my.matrix <- matrix(LETTERS[1:9], 3, byrow=TRUE))
split(my.matrix, row(my.matrix))


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "Alexander Sokol" <alexandersokol at ofir.dk>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, November 25, 2004 10:12 AM
Subject: [R] Creating lists from matrices