Re: [R] matrix from list

From: Olivier Lefevre <>
Date: Sat, 26 Apr 2008 01:31:16 +0200

Greg Snow wrote:
> The '[[' only returns a single element from a data structure

I know but that is precisely what I find arbitrary.

Anyway you are right that it would still return the kind of object, only subsetted, which is not I want. As someone kindly pointed out to me offline, besides the unlist trick posted before, you can also achieve the desired result with

   m <- as.matrix(l)
   dimnames(m) <- NULL mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 25 Apr 2008 - 23:33:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 17:30:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive