Final answer:
To get the data and put it in order using R, you can follow the provided steps, which involve uploading the WDI library, searching and uploading the desired series using WDI commands, merging dataframes, cleaning the data, and summarizing it using the Skim command.
Step-by-step explanation:
In order to get the data and put it in order using R, you can follow the steps mentioned below:
- Open a new project in R and upload the WDI library.
- To search and upload data from the World Bank World Development Indicator directly from R, use the WDI library. For example, search for the series containing information on GDP per capita using the code 'GDP per capita, PPP (constant 2017 international $)'. To upload the series as a dataframe, you can use the command WB_GDP = WDI(indicator = 'series code', country = 'all', start = 2000, end = 2020).
- For education, you can use the Barro-lee percentage of 15+ with secondary education: 'BAR.SEC.ICMP.15UP.ZS'.
- Merge the two dataframes by country and year.
- Clean the data by eliminating the 4 iso variables, keeping only the years 2000, 2005, and 2010 for the Barro-Lee data, renaming the GDP and Education variables as GDP and Edu, generating a log(GDP) variable, and using the Skim command to summarize the data and identify any issues.