NGres.scrape: Scrape Monthly NG Residential Consumption by State

Description Usage Arguments Examples

Description

This function scrapes monthly natural gas consumption (MMcf) delivered to residential end user from EIA website at a state level. The output is a dataframe containing scrapped data with "Date" as the first column, followed by the US totaland monthly data of 51 states.

Usage

1
NGres.scrape(startdate, enddate)

Arguments

startdate

a character string to indicate the starting date, in the format of "YYYY-MM"

enddate

a character string to indicate the ending date, in the format of "YYYY-MM"

Examples

1
2
# scrape natural gas residential consumption from Jan 1990 to Dec 2017
NGres.scrape(startdate = "1990-01", enddate = "2017-12")

xjessiex/envutils documentation built on May 7, 2019, 9:24 p.m.