Learn R Programming

MaddisonData (version 1.0.2)

logMaddison: Select countries and add logged variables

Description

logMaddison returns a tibble::tibble of data on selected countries extracted from MaddisonData, appending columns lnGDPpc and lnPop = natural logarithms of gdppc and pop.

Usage

logMaddison(ISO = NULL)

Value

a tibble::tibble with 6 columns:

ISO

3-letter ISO code for countries selected

year

numeric year in the current era.

gdppc

Gross domestic product per capita adjusted for inflation to 2011 dollars at purchasing power parity.

pop

Population, mid-year (thousands)

lnGDPpc

log(gdppc)

lnPop

log(pop)

Arguments

ISO

either NULL to select all the data in MaddisonData or a character vector of ISO codes used in the Maddison project.

Examples

Run this code
logMaddison() # all 
logMaddison(c('GBR', 'USA')) # GBR, USA

Run the code above in your browser using DataLab