So I have a data frame , simplified as this:
ID A B C
1 1 5 0
2 3 0 3
3 0 2 1
2 5 9 1
3 3 5 3
1 2 6 4
Simply put, I want to calculate the following for each row:
- Mean
- Median
- Max
- Min
Easy enough, but the hard part for me is after taking each, how do I create a mean value to represent each ID.
So after I get these values, how do I show the AVERAGE MEAN/MED/MAX/MIN for each ID???
Expected output:
(1)
ID Mean Median Min Max
1 2 1 0 5
2 2 3 0 3
3 1 1 0 2
2 5 5 1 9
3 3.66 3 3 5
1 4 4 2 6
(2)
ID AvgMean AvgMedian AvgMin AvgMax
1 3 2.5 1 5.5
2 3.5 4 1 6
3 2.33 3 3 3.5