Skip to content

how to use do.call("rbind", get(list(mlist)))

1 message · Liaw, Andy

#
Here's one way (should work for data frames, too):
[,1]       [,2]
 [1,] 0.33846095 0.09494054
 [2,] 0.65229451 0.26009002
 [3,] 0.53969914 0.66481544
 [4,] 0.59316498 0.36125843
 [5,] 0.24005411 0.01010594
 [6,] 0.06878842 0.93929806
 [7,] 0.02618064 0.06243190
 [8,] 0.08144251 0.04331587
 [9,] 0.95216684 0.61066435
[10,] 0.03712678 0.95809995

get() takes a character vector as the first argument, and you passed it a
list with one component (a character vector).  Even if you pass mlist to
get(), it will only get the first one.

Andy