1
當一個data.frame
包含比另一個更多的行時,將兩個單獨的data.frame
組合起來的最簡單方法是什麼?以下是我有:如何在R中合併兩個不同行的單獨數據幀
Dataframe A
Customer ID Items sold Price
1 20 2.50
2 30 10.00
3 40 15.00
4 NA 1.00
5 NA 1.00
Dataframe B
customer Id Items bought
1 10
2 NA
3 3
插入空格中列名是一個非常糟糕的主意。不要這樣做。 – jlhoward 2014-12-13 18:29:26