get_fred_series {alfred}R Documentation

Accessing FRED

Description

This function can pull time series from the FRED database: https://fred.stlouisfed.org.

Usage

get_fred_series(
  series_id,
  series_name = NULL,
  observation_start = NULL,
  observation_end = NULL,
  api_key = NULL
)

Arguments

series_id

FRED times series ID.

series_name

Choose a name for the series column in output. Default: series_id.

observation_start

Date of first observation in "yyyy-mm-dd" format. Default: Earliest observation available.

observation_end

Date of last observation in "yyyy-mm-dd" format. Default: Last observation available.

api_key

You can supply your own apikey obtained via https://research.stlouisfed.org/useraccount/login/secure/ if you want to run a large batch of requests. Otherwise you might run into query limits of the API.

Examples

## Not run: 
    get_fred_series("INDPRO", "indpro")
    
## End(Not run)

[Package alfred version 0.2.0 Index]