recessions: Recessions

Description Usage Arguments Format Functions Source Examples

Description

The fetch_recessions() function downloads the current recessions table from the NBER website and formats it for use by other functions in this package. The recessions table is the function's output, stored within the package for easy access.

Usage

1
2
3

Arguments

url

Char, the web location of the NBER machine-readable CSV file. The default, NULL, uses the most recently identified URL known to the package development team.

quietly

Logical, suppresses messages.

Format

A data frame with the following variables:

Functions

Source

https://www.nber.org/data/cycles/cycle dates pasted.csv

Examples

1
2
3
4
5
6
7
8
recessions <- fetch_recessions()

## Not run: 
  # package maintainers run:
  recessions <- fetch_recessions()
  usethis::use_data(recessions, overwrite = TRUE)

## End(Not run)

matthewstern/ggrecessions documentation built on Dec. 21, 2021, 3:47 p.m.