[R] Table into a list

Rui Barradas
Sat, 25 Feb 2012 00:53:41 -0000

Hello,
Try

(d <- data.frame(x1=letters[2*1:4 - 1], x2=letters[2*1:4]))
c(apply(d, 1, identity))

Note that you'll need the concatenation 'c()'.

Hope this helps,

Rui Barradas



--
View this message in context:
http://r.789695.n4.nabble.com/Table-into-a-list-tp4418804p4419091.html
Sent from the R help mailing list archive at Nabble.com.