statistics with R: how to avoid the “sum not meaningful for factors” error
if you’re trying to calculate weighted means, create a weighted boxplot, or do something similar in R, and you get an error saying “sum not meaningful for factors”, it means […]