powered by
country
country2
sex
lifeExpectancy
infectious
neoplasms
endocrine
mental
nervous
circulatory
respiratory
digestive
data(mortality)
data(mortality) str(mortality) ## totals (mortality) aggregate(mortality[,5:ncol(mortality)], list(mortality$country2), sum)
Run the code above in your browser using DataLab