- series_id
Character. One or more FRED series IDs (e.g. "GDP",
c("GDP", "UNRATE", "CPIAUCSL")).
- from
Optional start date. Character ("YYYY-MM-DD") or Date.
- to
Optional end date. Character ("YYYY-MM-DD") or Date.
- units
Character. Raw FRED units code. Default "lin" (levels).
Mutually exclusive with transform.
- transform
Character. Readable transformation name. See Details.
- frequency
Character. Frequency aggregation. One of "d" (daily),
"w" (weekly), "bw" (biweekly), "m" (monthly), "q" (quarterly),
"sa" (semiannual), "a" (annual), or NULL (native frequency,
the default).
- aggregation
Character. Aggregation method when frequency is
specified. One of "avg" (default), "sum", or "eop" (end of period).
- format
Character. "long" (default) returns one row per
(series_id, date). "wide" returns one row per date with one column
per series.
- cache
Logical. If TRUE (the default), results are cached locally
and returned from the cache on subsequent calls for 24 hours, after
which they are downloaded again (set options(fred.cache_ttl = ) to a
number of hours to change this). Set to FALSE to force a fresh
download from the API.