pdfetch_EIA: Fetch data from the US Energy Information Administration

View source: R/pdfetch.R

pdfetch_EIAR Documentation

Fetch data from the US Energy Information Administration

Description

Fetch data from the US Energy Information Administration

Usage

pdfetch_EIA(identifiers, api_key)

Arguments

identifiers

a vector of EIA series codes

api_key

EIA API key

Value

a xts object. Note that for hourly series the time zone will always be set to GMT, whereas the true time zone may be different. If you wish to use the correct time zone you must manually convert it.

See Also

https://www.eia.gov/

Examples

## Not run: 
pdfetch_EIA(c("ELEC.GEN.ALL-AK-99.A","ELEC.GEN.ALL-AK-99.Q"), EIA_KEY)

## End(Not run)

pdfetch documentation built on Sept. 18, 2023, 9:08 a.m.