## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", eval = FALSE ) ## ----------------------------------------------------------------------------- # library(eFRED) # api_key <- "abcdefghijklmnopqrstuvwxyz123456" # set_fred_key(api_key) ## ----------------------------------------------------------------------------- # df <- fred(y = "GDPC1", "unrate", all=FALSE) # head(df) ## ----------------------------------------------------------------------------- # info <- attr(df, "info") # info[, c("id", "title", "units_short", "frequency")] ## ----------------------------------------------------------------------------- # search_results <- fred_search("unemployment", args = list(limit = 3)) # search_results[, c("id", "frequency", "units_short")] .