Learn R Programming

readoecd (version 0.3.0)

get_oecd_productivity: Get OECD productivity data

Description

Downloads (and caches) labour productivity data for OECD member countries from the OECD Productivity Database (PDB).

Usage

get_oecd_productivity(countries = "all", start_year = 1990, refresh = FALSE)

Value

A data frame with columns:

country

ISO 3166-1 alpha-3 country code (character)

country_name

English country name (character)

year

Calendar year (integer)

series

"GDP_PER_HOUR" or "GDP_PER_CAPITA" (character)

value

Productivity value (numeric)

unit

Unit of measurement (character)

Arguments

countries

Character vector of ISO 3166-1 alpha-3 country codes, or "all" for all available OECD members. Defaults to "all". Run list_oecd_countries() to see available codes.

start_year

Numeric. Earliest year to include. Defaults to 1990.

refresh

Logical. If TRUE, re-download even if a cached copy exists. Defaults to FALSE.

Details

Returns GDP per hour worked where available (in USD purchasing power parities), falling back to GDP per capita. Values are at current prices.

Examples

Run this code
# \donttest{
prod <- get_oecd_productivity(c("AUS", "GBR", "USA"), start_year = 2000)
head(prod)
# }

Run the code above in your browser using DataLab