Skip to content

Latest commit

 

History

History

tidyr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

tidyr in Action: Exploring Educational Statistics

This section uses a real data set to demonstrate how reshaping your data with tidyr is an integral part of the data exploration process. The data in this example was downloaded from the World Bank Data Explorer, which is a data collection of hundreds of indicators (measures) of different economic and social development factors. In particular, this example considers educational indicators that capture a relevant signal of a country’s level of (or investment in) education— for example, government expenditure on education, literacy rates, school enrollment rates, and dozens of other measures of educational attainment.

In exploring the data through different lenses, the code generates the following figures to make comparisons between countries and over time:

Comparing educational expenditure in 1990 and 2014 (by country)

Scatter plot of educational expenditure in 1990 and 2014

Evaluating the expenditure over time in a particular location (Spain)

Line chart of Spain's education expenditure over time

Comparing female literacy and unemployment rates (by country)

Scatter plot of female literacy rate v.s. female unemployment rate