After an embarrassing teleconference in which I presented a series of percentages that did not sum to 100 (as they should have), I found some R code on stackoverflow.com to help me to avoid this in the future. In general, the sum of rounded numbers (e.g., using the base::round function) is not the same as … Continue reading Round values while preserve their rounded sum in R →