Description Usage Arguments Value Examples
View source: R/getSymbols.ALFRED.R
Data typically includes the Title, Series ID, Source, Release, Seasonal Adjustment, Frequency, Units, Date Range, Last Updated, and Notes.
1 | fredAttributes(Symbol, DataSheet = F)
|
Symbol |
specifying the name of the symbol to be queried |
DataSheet |
Logical. Default is FALSE. Do not return the data payload. Otherwise, if TRUE, then also return the data payload of all of the data in an R attribute named "DataSheet". |
data.frame of attributes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
# Smoothed U.S. Recession Probabilities
# Source: Piger, Jeremy Max, Chauvet, Marcelle
# https://fred.stlouisfed.org/data/RECPROUSM156N.txt
#
print(str(fredAttributes("RECPROUSM156N")))
'data.frame': 1 obs. of 10 variables:
$ Title : chr "Smoothed U.S. Recession Probabilities"
$ SeriesID : chr "RECPROUSM156N"
$ Source : chr "Piger, Jeremy Max, Chauvet, Marcelle"
$ Release : chr "U.S. Recession Probabilities"
$ SeasonalAdjustment: chr "Not Seasonally Adjusted"
$ Frequency : chr "Monthly"
$ Units : chr "Percent"
$ DateRange : chr "1967-06-01 to 2020-09-01"
$ LastUpdated : chr "2020-11-02 7:01 AM CST"
$ Notes : chr "Smoothed recession probabilities for the United"
tail(attr(fredAttributes("RECPROUSM156N", DataSheet = T), "DataSheet"))
RECPROUSM156N
2020-04-01 100.00
2020-05-01 37.85
2020-06-01 37.85
2020-07-01 47.92
2020-08-01 100.00
2020-09-01 100.00
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.