Package 'OECD'

Title: Search and Extract Data from the OECD
Description: Search and extract data from the Organization for Economic Cooperation and Development (OECD).
Authors: Eric Persson [aut, cre]
Maintainer: Eric Persson <[email protected]>
License: CC0
Version: 0.3.0
Built: 2024-10-30 04:00:39 UTC
Source: https://github.com/expersso/oecd

Help Index


Get the data structure of a dataset.

Description

Returns a list of data frames containing names and descriptions of the variables of a specified series.

Usage

get_data_structure(dataset)

Arguments

dataset

A string containing the code for a dataset

Value

A list of data frames.

Examples

## Not run: 
get_data_structure("OECD.SDD.NAD.SEEA/DSD_NAT_RES@DF_NAT_RES/1.0")

## End(Not run)

Download OECD data sets.

Description

Returns a data frame with the requested data, downloaded through the OECD's API.

Usage

get_dataset(
  dataset,
  filter = NULL,
  start_time = NULL,
  end_time = NULL,
  last_n_observations = NULL,
  ...
)

Arguments

dataset

A string with the code for the desired data set

filter

A character vectors specifying the filter to be applied to each dimension of the dataset (see examples below).

start_time

Starting time/period for data. If left blank, no time filter is applied (i.e. all observations since the earliest available observation are downloaded).

end_time

End time/period for data.

last_n_observations

Number of most recent observations to download.

...

Additional parameters passed to read_sdmx

Value

A data frame

Examples

# Get entire dataset
## Not run: 
df <- get_dataset("OECD.SDD.NAD.SEEA/DSD_NAT_RES@DF_NAT_RES,1.0", "AUS+CAN.A....")

## End(Not run)
## Not run: 
head(df, 10)

## End(Not run)