Supose you are analysing survey data. You are asked to get the mean in a representative way, weighting your individuals depending on the number of members of their segment.
group_by(region1, region2, gender) %__%
mutate(weight = 1/n()) %__%
funs(weighted_mean = ... [Read more...]