[R] flatten a list

Giorgio Garziano giorgio.garziano at ericsson.com
Tue Sep 29 17:58:23 CEST 2015


To mention also:

temp <- list(1:3, list(letters[1:3], duh= 5:8),  zed=15:17)

library(rlist)
list.flatten(temp)


[[1]]

[1] 1 2 3



[[2]]

[1] "a" "b" "c"



$duh

[1] 5 6 7 8



$zed

[1] 15 16 17


---

Giorgio Garziano

	[[alternative HTML version deleted]]



More information about the R-help mailing list