eco.download: Download Economic Data

View source: R/eco.download.R

eco.downloadR Documentation

Download Economic Data

Description

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


soloemoon/ecoMoon documentation built on Oct. 7, 2022, 9:59 a.m.