Package: eia 0.4.2

Matthew Hoff

eia: API Wrapper for U.S. Energy Information Administration ('EIA') Open Data

Provides API access to data from the U.S. Energy Information Administration ('EIA') <>. Use of the EIA's API and this package requires a free API key obtainable at <>. This package includes functions for searching the EIA data directory and returning time series and geoset time series datasets. Datasets returned by these functions are provided by default in a tidy format, or alternatively, in more raw formats. It also offers helper functions for working with EIA date strings and time formats and for inspecting different summaries of series metadata. The package also provides control over API key storage and caching of API request results.

Authors:Matthew Leonawicz [aut], Matthew Hoff [aut, cre]

eia.pdf |eia.html
eia/json (API)

# Install eia in R:
install.packages('eia', repos = c('', ''))

Peer review:

Bug tracker:



14 exports 45 stars 3.14 score 26 dependencies 346 downloads

Last updated 2 months agofrom:a76d6ae220fcf6c7fbe0a2d334bdeadc6132c9e9 (via master)



API details

Rendered fromapi.Rmdusingknitr::rmarkdownon Jun 12 2024.

Last update: 2023-10-31
Started: 2019-07-01

Package overview

Rendered fromeia.Rmdusingknitr::rmarkdownon Jun 12 2024.

Last update: 2023-10-31
Started: 2019-06-26

Readme and manuals

Help Manual

Help pageTopics
eia: EIA API wrappereia-package eia
Clear API results cacheeia_clear_cache eia_clear_data eia_clear_dir eia_clear_facets eia_clear_metadata
EIA dataeia_data
EIA directoryeia_dir
EIA facetseia_facets
Set and get API keyeia_get_key eia_key eia_set_key
EIA metadataeia_metadata
EIA date parsingdate_to_eiadate eiadate eiadate_to_date eiadate_to_date_seq