# NOT RUN {
if (fredr_has_key()) {
fredr_request(
endpoint = "series/observations",
series_id = "GNPCA",
observation_start = "1990-01-01",
observation_end = "2000-01-01"
)
# Compare to to_frame = `FALSE`
resp <- fredr_request(
endpoint = "series/observations",
series_id = "GNPCA",
observation_start = "1990-01-01",
observation_end = "2000-01-01",
to_frame = FALSE
)
}
# }
Run the code above in your browser using DataLab