fetch_series: Fetch a series, or list of series, of economic data from the...

View source: R/fetch_series.R

fetch_seriesR Documentation

Fetch a series, or list of series, of economic data from the Aeconomica API.

Description

Fetch a series, or list of series, of economic data from the Aeconomica API.

Usage

fetch_series(series, vintage = "latest")

Arguments

series

A series, or number of series to fetch. Can be either a single series code, a vector of series codes, or a list of series codes and vintage pairs (with the series code as the name and the vintage as the value). You can find series codes on the Aeconomica website in the top right of the page showing the series.

vintage

(optional) Specify a vintage for all of the series you want to fetch. Cannot be used if your specify vintages for individual series. Vintage can be any of 'current' (alias 'latest', default), 'previous' or a date in YYYY-MM-DD form.

Examples

## Not run: 
# Downloading a single series
fetch_series("WPI")

# Downloading a number of series
fetch_series(c("GDP_YE", "CPI_YE"))

# Use a list to download a different series with different vintages
fetch_series(list("GDP_YE" = "latest", "CPI_YE" = "previous"))

## End(Not run)


aeconomica/aeconomicar documentation built on Sept. 6, 2024, 12:03 p.m.