I would like to get the sum of duplicates. For example,
No. MRN Bicycle
1. 010 1
2. 011 1
3. 011 1
4. 012 0
5. 013 1
6. 014 0
7. 015 1
8. 015 1
9. 015 1
1 is yes
0 is no
May I know r code that MRN 011 has 1 bicycle. NOT 2.(MRN 015 has 1 not 3) And I would like to know total number of bicycles answer as 4). NOT 7. Please show me how to put command in R. Thanks.