World Population Predictor

Sukhen Chatterjee
July 27, 2018

World Population Predictor

This is a very simple application which displays the actual and projected total population (in Million) of the world by country or region. Here is the link to app. https://sukhenc.shinyapps.io/populationpredictor/.

  1. Navigation Panel The left-hand navigation panel has three input boxes and one link to the help web page.
  2. Main Panel The right-hand main panel has three sections as following from top to bottom. Country Profile, Plot and Projected Population
  3. Link to help page This webpage has additional information about this Shiny Aapp.

Code to read data

  1. Source Data http://databank.worldbank.org/data/source/health-nutrition-and-population-statistics/
  2. Source Code https://github.com/sukhenc/worldpopulationpredictor/
source("loaddata.R")
kable(summary(subset(populationdataset, countryname == "United Kingdom")[,6:7]), row.names = FALSE)
year population
Min. :1960 Min. :52.40
1st Qu.:1974 1st Qu.:56.19
Median :1988 Median :57.01
Mean :1988 Mean :58.03
3rd Qu.:2003 3rd Qu.:59.58
Max. :2017 Max. :66.02

United Kingdom Population Plot

plot of chunk unnamed-chunk-2

Code for the Projected Population

profile <- subset(populationdataset, countryname == "United Kingdom" & year == "2010") 
profile <- profile[,c("countrycode","countryname", "year", "population")]
profile$projectedpopulation <- round(predict(predmodel, newdata = data.frame(year = 2010)),2)
kable(profile, row.names = FALSE)
countrycode countryname year population projectedpopulation
GBR United Kingdom 2010 62.77 62.03