Skip to content
Prev 314843 / 398506 Next

list of lists to matrix

Please supply some sample data. 
 The easiest way to supply data  is to use the dput() function.  Example with your file named "testfile": 
dput(testfile) 

Then copy the output and paste into your email.  For large data sets, you can just supply a representative sample.  Usually, 
dput(head(testfile, 100)) will be sufficient.   

Simpe example:
 aalist <- list(aa = c(3.0, 2.9, 2.7), bb = c(0.86, 0.76, 0.66), 
                    cc= c(0.07, 0.04, 0.04), cc = c("a", "b", "c"))
  
   dput(aalist) 

The attached text file was useful but actual or example data is much better.

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!