get_dataset: Download OECD data sets.

View source: R/main.R

get_datasetR Documentation

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)


expersso/OECD documentation built on April 8, 2024, 2:31 a.m.