Tag: calculate percentage within group in R