can you help me please how to properly use aggregate function in R?
I have data like this:
SPORT FLOWS
[1,] "Other" "1"
[2,] "Other" "1"
[3,] "Other" "1"
[4,] "Other" "1"
[5,] "Other2" "1"
[6,] "Other2" "1"
And I need to get this:
SPORT FLOWS
[1,] "Other" "4"
[2,] "Other2" "2"
I found, that it can be done with aggregate function, but it doesn't work..
Thank you guys.. I have marked answer which worked for me..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…