Learn R Programming

readoecd (version 0.3.0)

get_oecd_education: Get OECD education expenditure data

Description

Downloads (and caches) total education expenditure as a share of GDP for OECD member countries from the OECD Education at a Glance (EAG) UOE Finance database.

Usage

get_oecd_education(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

"EDU_EXPENDITURE" (character)

value

Total education expenditure as a share of GDP (numeric)

unit

"% of GDP" (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

Education expenditure covers spending on educational institutions across all levels of education (ISCED 0--8), from all public and private sources, expressed as a percentage of GDP.

Examples

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

Run the code above in your browser using DataLab