【发布时间】:2018-02-22 21:30:47
【问题描述】:
我目前有一个不同长度的字符向量列表。像这样:
list(
c('this','is','first'),
c('this','is','second','it','longer'),
c('this is a list','that is length 2')
)
我想将列表中每个向量的所有元素组合成tibble 中的一行。像这样:
data_frame(column_1 =
c('this is first',
'this is second it longer',
'this is a list that is length 2'))
如果可能,我想使用基本 R 或 tidyverse 中的软件包。
【问题讨论】: