Using summarise_at(). Weighted mean Tidyverse approach
Survey analysis using R. Mastering Tidyverse summarise_at() function to achieve aggregated metrics and statistics.
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.