R list of lists to data.frame

前端 未结 5 1300
夕颜
夕颜 2020-11-27 19:12

I\'ve got a list of lists, call it listHolder, which has length 5.

Every element in listHolder is a list of numeric data, with 160 or so e

5条回答
  •  悲哀的现实
    2020-11-27 19:45

    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.

提交回复
热议问题