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.

q1_weighted_meanq2_weighted_mean
3.3333336
Carlos Vecina
Carlos Vecina
Data Scientist & TechLead at Bankinter

Data Scientist & TechLead at Bankinter | AI & Data Science for Business

Related