I am trying to summarise multiple columns based on an ID column so I don\'t double count observations. I have managed to use tapply to get what I need for one varia
tapply