Instructions:

Using kableExtra and the gapminder data we worked with earlier in the semester, as best you can, recreate this table showing the life population and life expectancy for the two least populated countries in the Americas and Europe for 1997.

Table:

I had one issue when re-creating this table. I tried to make the first column say the word “Statistics” on the same horizontal line as the countries. I wasn’t able to do this, so instead I created another header_above that represents that column. Other than that one issue, it looks pretty similar.

Statistics
Americas
Europe
Jamaica Trinidad and Tobago Iceland Montenegro
population 2531311 1138101 271192 692651
life expectancy 72 69 79 75
Note: Population and life expectancy for the two least populous countries in Americas and Europe in 1997