Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RamiKrispin/UKgrid
The UK National Grid historical demand for electricity
https://github.com/RamiKrispin/UKgrid
Last synced: 3 months ago
JSON representation
The UK National Grid historical demand for electricity
- Host: GitHub
- URL: https://github.com/RamiKrispin/UKgrid
- Owner: RamiKrispin
- License: other
- Created: 2018-07-15T06:57:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T17:31:33.000Z (10 months ago)
- Last Synced: 2024-04-14T07:11:25.287Z (7 months ago)
- Language: R
- Homepage: https://ramikrispin.github.io/UKgrid/
- Size: 49.6 MB
- Stars: 28
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - UKgrid - An R data package with the UK National Grid historical demand for electricity between April 2005 and October 2019. (Energy Systems / Energy Data Accessibility and Integration)
README
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![CRAN status](https://www.r-pkg.org/badges/version/UKgrid)](https://cran.r-project.org/package=UKgrid)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)An R data package with the UK [National Grid](https://en.wikipedia.org/wiki/National_Grid_(Great_Britain)) historical demand for electricity between April 2005 and October 2019
Overview
--------
The UKgrid dataset is an example of a multiple seasonality time series. This time series captures the demand for electricity and its components in the UK since April 2005 using half-hour intervals. In addition, the package provides a function to extract, subset and aggregate the series into `tsibble`, `ts`, `xts`, `zoo`, `data.frame`, `data.table`, or `tbl`.The data was sourced from the National Grid UK [website](https://www.nationalgrid.com/uk)
Installation
------------Install the stable version from [CRAN](https://CRAN.R-project.org/package=UKgrid):
``` r
install.packages("UKgrid")
```or install the development version from [Github](https://github.com/RamiKrispin/UKgrid):
``` r
# install.packages("remotes")
remotes::install_github("RamiKrispin/UKgrid")
```Usage
-----``` r
library(UKgrid)# Load the full dataset (data.frame format)
data("UKgrid")# Extract only the demand field (ND - National Demand) using tsibble format
extract_grid(type = "tsibble",
columns = "ND")# Extract the demand between 2016 and 2017 using tbl format
extract_grid(type = "tbl",
columns = "ND",
start = 2016,
end = 2017)# Extract the first 10 days in 2018 and aggregate to hourly using zoo format
extract_grid(type = "zoo",
columns = "ND",
start = as.Date("2018-01-01"),
end = as.Date("2018-01-10"),
aggregate = "hourly")
```More details available on the package [site](https://ramikrispin.github.io/UKgrid/) and [vignette](https://ramikrispin.github.io/UKgrid/articles/UKgrid_vignette.html)