-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from RamiKrispin/data-refresh-04/22
Data refresh 04/22
- Loading branch information
Showing
69 changed files
with
122,605 additions
and
22,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
^data_raw$ | ||
^LICENSE\.md$ | ||
^CRAN-RELEASE$ | ||
^CRAN-SUBMISSION$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Version: 0.1.2 | ||
Date: 2023-04-16 06:30:52 UTC | ||
SHA: efb45230dddbd71b96c33b71c990eb6976f18b7f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#' US Monthly Consumption of Natural Gas by End Use | ||
#' @description The US monthly consumption of natural gas by end-use and state between 1973 (US aggregate, state level since 1989) and 2022. | ||
#' | ||
#' Units: Million Cubic Feet | ||
#' | ||
#' | ||
#' @format A data.frame with 6 variables. | ||
#' \describe{ | ||
#' \item{date}{A Date, the month and year of the observation (the day set by default to 1st of the month)} | ||
#' \item{process}{The process type description} | ||
#' \item{state}{The US state name} | ||
#' \item{state_abb}{the US state abbreviation} | ||
#' \item{y}{A numeric, the monthly natural gas residential consumption in a million cubic feet} | ||
#' } | ||
#' @source US Energy Information Administration (EIA) \href{https://www.eia.gov/}{website}. | ||
#' @keywords datasets timeseries natural gas us state | ||
#' @details The dataset contains monthly summary of the consumption of natural gas | ||
#' by end-use in the US by state and total aggregate level. The data is available | ||
#' for the state level between January 1989 and December 2022, and for the US level | ||
#' between January 1973 and Dec 2022. It includes the following end-use categories: | ||
#' | ||
#' - Commercial Consumption | ||
#' - Delivered to Consumers | ||
#' - Electric Power Consumption | ||
#' - Industrial Consumption | ||
#' - Lease and Plant Fuel Consumption | ||
#' - Pipeline Fuel Consumption | ||
#' - Residential Consumption | ||
#' - Vehicle Fuel Consumption | ||
#' | ||
#' @examples | ||
#' | ||
#' library(plotly) | ||
#' | ||
#' data("usgas") | ||
#' | ||
#' head(usgas) | ||
#' | ||
#' # Plot the US consumption | ||
#' | ||
#' us_df <- usgas[which(usgas$state == "U.S."), ] | ||
#' | ||
#' plot_ly(data = us_df, | ||
#' x = ~ date, | ||
#' y = ~ y, | ||
#' color = ~ process, | ||
#' type = "scatter", | ||
#' mode = "line") |> | ||
#' layout(title = "US Monthly Consumption by End Use", | ||
#' yaxis = list(title = "MMCF"), | ||
#' xaxis = list(title = "Source: EIA Website"), | ||
#' legend = list(x = 0, y = 1.05), | ||
#' margin = list(l = 50, r = 50, b = 70, t = 60)) | ||
#' | ||
#' | ||
#' # Plot the California consumption | ||
#' | ||
#' ca_df <- usgas[which(usgas$state == "California"), ] | ||
#' | ||
#' plot_ly(data = ca_df, | ||
#' x = ~ date, | ||
#' y = ~ y, | ||
#' color = ~ process, | ||
#' type = "scatter", | ||
#' mode = "line") |> | ||
#' layout(title = "California Monthly Consumption by End Use", | ||
#' yaxis = list(title = "MMCF"), | ||
#' xaxis = list(title = "Source: EIA Website"), | ||
#' legend = list(x = 0, y = 1.05), | ||
#' margin = list(l = 50, r = 50, b = 70, t = 60)) | ||
#' | ||
"usgas" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.