我有这个清单:
myList<-list(c("Developmental Biology", " Neuroscience", " Cell Biology"
), c("Developmental Biology", " Neuroscience", " Cell Biology"
), c("Developmental Biology", " Neuroscience", " Genomics & Genetics"
), c("Developmental Biology", " Neuroscience", " Cell Biology"
), c("Developmental Biology", " Neuroscience", " Cell Biology"
), c("Developmental Biology", " Genomics & Genetics"))
我想要这个数据框:
[,1] [,2] [,3]
[1,] "Developmental Biology" " Neuroscience" " Cell Biology"
[2,] "Developmental Biology" " Neuroscience" " Cell Biology"
[3,] "Developmental Biology" " Neuroscience" " Genomics & Genetics"
[4,] "Developmental Biology" " Neuroscience" " Cell Biology"
[5,] "Developmental Biology" " Neuroscience" " Cell Biology"
[6,] "Developmental Biology" " Genomics & Genetics" "NA"
我原以为 rbind.fill 将是要走的路,但do.call(rbind.fill,myList)
返回NULL
.