Learn R Programming

pdfetch (version 0.2.7)

pdfetch_EIA: Fetch data from the US Energy Information Administration

Description

Fetch data from the US Energy Information Administration

Usage

pdfetch_EIA(identifiers, 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.

Arguments

identifiers

a vector of EIA series codes

api_key

EIA API key

See Also

Examples

Run this code
if (FALSE) {
pdfetch_EIA(c("ELEC.GEN.ALL-AK-99.A","ELEC.GEN.ALL-AK-99.Q"), EIA_KEY)
}

Run the code above in your browser using DataLab