eco.download | R Documentation |
Download economic data from selected sources. Choose shape, inclusion of recession bars, and time series options. eco.monthly(keys,key.rename, shape, periodicity, show.recession) \itemkeysString of Fred key names to import. \itemshapeChoose 'l' for long format or 'W' for wide format. Default is wide. \itemperiodicityChoose periodicity. Either 'monthly', 'quarterly', 'weekly', or 'daily'. Default is monthly. \itemshow.recessionChoose y to include recession indicator or 'n' to exclude. Default is 'y'. \itemtime.seriesChoose to convert dataframe into a time series
Returns a preformatted dataframe with the given economic data. https://research.stlouisfed.org/docs/api/fred/ soloemoon@gmail.com
keys <-c('UNRATE','PAYEMS') t.data <-eco.download(c('UNRAte','PAYEMS'), show.recession = 'n', time.series = 'y', periodicity='monthly')
datasets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.