World Bank Population living in slums data analysis 1 - import CSV file data into R and tidying data.

Generated by Bing Image Creator: Local area photograph, apple trees, blue sky and white clouds

In this post, I will analyze World Bank Population living in slums data using R.

Population living in slums (% of urban population) | Data (worldbank.org)

I got below CSV files.

First, I load tidyverse package.

Then, I use read_csv() function to load CSV file

Since df_raw data frmae is wide format or not tidy data, I need to convert it to tidy data frame. I use pivot_longer() function.

Next, I merge df and country_meta_data using inner_join() function

All right. Now I have a tidy data frame named "df".

That's it. Thank you!

Next post is