[R] Table into a list

Rui Barradas rui1174 at sapo.pt
Sat Feb 25 01:53:41 CET 2012


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.



More information about the R-help mailing list