Sukhen Chatterjee
July 27, 2018
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/.
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 |
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 |