[R] matrix from list

Olivier Lefevre lefevrol at yahoo.com
Fri Apr 25 00:16:28 CEST 2008


Yes, unlist is the magic wand I was looking for. Thanks a million!

Having said that, I find it rather arbitrary that you can write mat[1:4] 
but not list[[1:2]]; IMO there should be no need for a "magic" operator 
like unlist: list[[1:length(list)]] could do the job.

-- O.L.



More information about the R-help mailing list