The object loaded is a data.frame object containing data from World Bank

worldbank_df

Format

Formal class 'data.frame'; the data contains a data.frame with 177 obs. of 7 variables:

  • name: character vector of country names

  • iso_a2: character vector of ISO 2 character country codes

  • HDI: human development index (HDI)

  • urban_pop: urban population

  • unemployment: unemployment, total (% of total labor force)

  • pop_growth: population growth (annual %)

  • literacy: adult literacy rate, population 15+ years, both sexes (%)

See also

See the wbstats package: https://cran.r-project.org/web/packages/wbstats

Examples

data(worldbank_df)
# or
worldbank_df <- read.csv(system.file("misc/worldbank_df.csv", package="spData"))

summary(worldbank_df)
#>      name              iso_a2               HDI           urban_pop        
#>  Length:177         Length:177         Min.   :0.2970   Min.   :    48439  
#>  Class :character   Class :character   1st Qu.:0.3725   1st Qu.:  2128406  
#>  Mode  :character   Mode  :character   Median :0.4540   Median :  5174900  
#>                                        Mean   :0.4681   Mean   : 22908339  
#>                                        3rd Qu.:0.5335   3rd Qu.: 15371796  
#>                                        Max.   :0.7250   Max.   :742299307  
#>                                        NA's   :130      NA's   :9          
#>   unemployment      pop_growth         literacy    
#>  Min.   : 0.180   Min.   :-3.1072   Min.   :32.00  
#>  1st Qu.: 4.590   1st Qu.: 0.4992   1st Qu.:77.16  
#>  Median : 6.730   Median : 1.3530   Median :91.75  
#>  Mean   : 8.615   Mean   : 1.4752   Mean   :82.04  
#>  3rd Qu.:11.158   3rd Qu.: 2.3755   3rd Qu.:94.99  
#>  Max.   :28.030   Max.   : 6.5047   Max.   :99.98  
#>  NA's   :63       NA's   :9         NA's   :143