With the dataset I have the columns c1 (year), c2 (states), c3 (weight) and c4 (value).
I would like to make the weighted average of (c4) with (c3), by state (c2) per year (c1).
dados <- data.frame(c1 = c(rep(1996:2003, 4)), c2 = c(rep(...
asked by
06.12.2018 / 02:20