> SS
Cust_map Merch_Map_final TXN_MTH SPND_CATGY NumTrans
1: 1 2412 201310 BUSINESS SERVICES 2
2: 1 2412 201401 BUSINESS SERVICES 3
3: 1 2412 201403 BUSINESS SERVICES 3
4: 1 2412 201406 BUSINESS SERVICES 3
5: 1 2412 201407 BUSINESS SERVICES 2
6: 2 2415 201310 GROCERY 5
Asked
Active
Viewed 67 times
0
David Arenburg
- 89,637
- 17
- 130
- 188
sandy
- 11
- 4
1 Answers
0
We can group by 'Cust_map' and get the sum of 'NumTrans'
SS[, .(NumTrans = sum(NumTrans)), by = Cust_map]
David Arenburg
- 89,637
- 17
- 130
- 188
akrun
- 789,025
- 32
- 460
- 575