且构网

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

当两个数据框具有不同的列集时,按行组合两个数据框 (rbind)

更新时间:2022-11-17 16:16:17

rbind.fill 包中的 plyr 可能是您正在寻找的.​​p>

Is it possible to row bind two data frames that don't have the same set of columns? I am hoping to retain the columns that do not match after the bind.

rbind.fill from the package plyr might be what you are looking for.