1.3 Working with Data: An Introduction to R

Quick Question

Use the tapply function to find the average child mortality rate of countries in each region.

Which region has the lowest average child mortality rate across all countries in that region?

Africa  close

Americas  close

Eastern Mediterranean  close

Europe  check

South-East Asia  close

Western Pacific  close

Explanation You can find the average child mortaility rate of countries in each region by using the following command: tapply(WHO$ChildMortality, WHO$Region, mean) The output tells us that Europe has the lowest average child mortality rate across all countries, with an average of 10.05.

Learning Resource Types

theaters Lecture Videos
notes Lecture Notes
assignment_turned_in Problem Sets with Solutions