Adds the proportion of occurrences of each level to the corresponding level name.
A group variable.
Vector of weights of same length as the group variable.
group variable can be a factor or a numerical variable. In the latter case it is transformed to a factor.
1 2 3 4 5 6