且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按名称重新列出列表中的所有数据框

更新时间:2023-01-11 22:15:26

使用lapply子集出您想要的元素,并在该列表中将rbinddo.call组合:

Use lapply to subset out the elements you want, and rbind with do.call on that list:

do.call("rbind",lapply(ALIST,function(x) x[["a"]]))
  X1.3
1    1
2    2
3    3
4    1
5    2
6    3
7    1
8    2
9    3