I have a dataset that is similar to:
Person boat Fish
John A 2
David A 1
Sam B 4
Mike C 3
Carley C 5
Mark C 1
And I want to add a column to my data that has the total number of fish per boat. The boats are A, B, and C. However, I just want to add the column to my data and don't want to reorganize the rest of my dataset. I tried proc summary but it kept reorganizing my dataset. Maybe I am doing it wrong. I want my new dataset to have a column for FishperBoat and to look like:
Person boat Fish FishperBoat
John A 2 3
David A 1 3
Sam B 4 4
Mike C 3 9
Carley C 5 9
Mark C 1 9
Any advice would be greatly appreciated.