eia_series: This function download series data.

Description Usage Arguments

View source: R/eia_series.R

Description

This function download series data.

Usage

1
2
3
eia_series(api_key = "34117E2A8A50B13CAC6A3C5C8BDC89CF", series_id,
  start = NULL, end = NULL, num = NULL, tidy_data = "no",
  only_data = FALSE)

Arguments

api_key

Character value. Your API key.

series_id

Character vector. Name of series.

num

Numerical. Optional. Cannot be used with start and end. Maximum number of most recent points returned.

start

Character. Optional. Same format as values returned. Dates are formatted as yyyy, yyyyQq, yyyymm, yyyymmdd for annual, quarterly, monthly, and daily/weekly data respectively.

end

Character. Optional. Same format as values returned. Dates are formatted as yyyy, yyyyQq, yyyymm, yyyymmdd for annual, quarterly, monthly, and daily/weekly data respectively.

num

Numerical. Optional. Cannot be used with start and end. Maximum number of most recent points returned.

tidy_data

Select between "no", "tidy_long". If true, there will be added two variables; the series_name and series_time_frame.

Logical.

Return only the data and not meta data?


krose/eia documentation built on May 20, 2017, 6:15 a.m.