【发布时间】:2018-03-16 13:30:01
【问题描述】:
我有一个长度不等的数据表列表。有的数据表有 35 列,有的有 36 列。
我有这行代码,但是它会产生错误
> lst <- unlist(full_data.lst, recursive = FALSE)
> model_dat <- do.call("rbind", lst)
Error in rbindlist(l, use.names, fill, idcol) :
Item 1362 has 35 columns, inconsistent with item 1 which has 36 columns. If instead you need to fill missing columns, use set argument 'fill' to TRUE.
关于如何修改它以使其正常工作的任何建议。
【问题讨论】:
-
错误提示您尝试绑定的对象的列数不相等。
-
如问题中所述,“有些数据表有 35 列,而另一些有 36 列。”
标签: r