sboysel / fredr

An R client for the Federal Reserve Economic Data (FRED) API
https://sboysel.github.io/fredr/
Other
92 stars 21 forks source link

Option to select Seasonally Adjusted Observation #102

Closed ericvmai closed 7 months ago

ericvmai commented 1 year ago

Is there a variable in the fredr() function that allows you to choose the "Seasonally Adjusted" observation instead of the "Not Seasonally Adjusted"? I have to choose some different variables to get there but would prefer a variable that allows me to choose that.

sboysel commented 7 months ago

AFAIK, FRED series are seasonally adjusted at the series level and there is no option exposed by the endpoint fredr/series/observations (i.e. the function fredr::fredr) to select different versions by this particular adjustment. A series and it's seasonally adjusted counterpart will have distinct series IDs. What you can do is use the filter_variable parameter from one of the fredr::fredr_search_* functions to search for a seasonally adjusted version of a series.