How to flatten a list of lists?

后端 未结 3 1544
予麋鹿
予麋鹿 2020-11-28 06:07

The tm package extends c so that, if given a set of PlainTextDocuments it automatically creates a Corpus. Unfortunately,

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 06:25

    Here's another method that worked for my list of lists.

    df <- as.data.frame(do.call(rbind, lapply(foolist, as.data.frame)))

提交回复
热议问题