I have two data frames that looks like:
data.one:
cust_id stats AIRLINE AUTO RENTAL CLOTHING STORES
1: 495 SUM 45493.42 3103.90 20927.56
2: 692 SUM 39954.78 0.00 20479.60
3: 728 SUM 25813.03 3504.74 5924.71
4: 1794 SUM 0.00 0.00 0.00
5: 3060 SUM 0.00 0.00 7146.31
data.two:
cust_id stats AIRLINE AUTO RENTAL CLOTHING STORES
1: 495 MAX 4950.00 1000.00 3140
2: 692 MAX 6479.71 0.00 1880
3: 728 MAX 5642.68 1752.37 1395
4: 1794 MAX 0.00 0.00 0
5: 3060 MAX 0.00 0.00 1338
I want to bind them together (row-wise) such that the resulting data frame will look like this:
cust_id stats AIRLINE AUTO RENTAL CLOTHING STORES
1: 495 SUM 45493.42 3103.90 20927.56
2: 495 MAX 4950.00 1000.00 3140
3: 692 SUM 39954.78 0.00 20479.60
4: 692 MAX 6479.71 0.00 1880
5: 728 SUM 25813.03 3504.74 5924.71
6: 728 MAX 5642.68 1752.37 1395
.
.
.
meaning, rows with same cust_id
from both the data frames stay next to each other in the binded data frame.
Thank you for your time in advance.