fredImport time series from St. Louis FRED Web site,
fredSeries easy to use download from St. Louis FRED}fredImport(query, file = "tempfile",
source = "http://research.stlouisfed.org/fred2/series/",
frequency = "daily", save = FALSE, sep = ";", try = TRUE)
fredSeries(query = "DPRIME", frequency = "daily", returnClass =
c("timeSeries", "ts", "matrix", "data.frame"), getReturns = FALSE, ...)returnSeries?"timeSeries" object, alternatives are: "ts",
"matrix", or "data.frame".file. By default FALSE.fredImport returns an S4 object of class
fWEBDATA with the following slots:fredSeries returns an S4 object of
class timeSeries or alternatively an object specified by
the function argument returnClass.## fredImport -
DPRIME = fredImport("DPRIME")
if (!is.null(DPRIME)) print(DPRIME@data[1:20, ])Run the code above in your browser using DataLab