Description Usage Arguments Format Functions Source Examples
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.
1 2 3 | recessions
fetch_recessions(url = NULL, quietly = FALSE)
|
url |
Char, the web location of the NBER machine-readable CSV file. The
default, |
quietly |
Logical, suppresses messages. |
A data frame with the following variables:
start_char, end_char
: Easily readable labels for the beginning and
end of the recession.
start, end
: Recession Dates
expressed in R datetime format, using the first day of the specified month.
ongoing
: Logical. Whether or not the recession is ongoing as
of the latest available NBER data.
fetch_recessions
: Function for fetching recessions from NBER website
https://www.nber.org/data/cycles/cycle dates pasted.csv
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.