Introduction

Using data from the gapminder filter the year 1997, focusing on countries in the Americas and Europe. It then preprocesses the data to create separate tables for population and life expectancy, before merging them into a single table. Finally, it formats the table using the kable package for presentation.

.
Americas
Europe
statistic 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.