R list of lists to data.frame

AS @dimitris_ps mentioned earlier, the answer could be:

do.call(rbind, listHolder)

Since do.call naturally “strips” 1 level of the “list of list”, obtaining a list, not a list of lists.

After that, rbind can handle the elements on the list and create a matrix.

Leave a Comment