【发布时间】:2019-07-17 05:26:11
【问题描述】:
我想在 R 中水平合并两个数据框。
这是我的两个数据框:
数据框 1:
veg loc quantity
carrot sak three
pepper lon two
tomato apw five
数据框 2:
seller quantity veg
Ben eleven eggplant
Nour six potato
Loni four zucchini
Ahmed two broccoli
我希望结果是一个如下所示的数据框:
veg quantity
carrot three
pepper two
tomato five
eggplant eleven
potato six
zucchini four
broccoli two
【问题讨论】:
-
从两个数据框中选择你想要的列,然后
rbind他们一起
标签: r