A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

UKgrid

An R data package with the UK National Grid historical demand for electricity between April 2005 and October 2019.
https://github.com/RamiKrispin/UKgrid

Category: Energy Systems
Sub Category: Energy Data Accessibility and Integration

Last synced: about 21 hours ago
JSON representation

Repository metadata

The UK National Grid historical demand for electricity

README.md

UKgrid

lifecycle
CRAN status
License: MIT

An R data package with the UK National Grid 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

Installation

Install the stable version from CRAN:

install.packages("UKgrid")

or install the development version from Github:

# install.packages("remotes")
remotes::install_github("RamiKrispin/UKgrid")

Usage

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 and vignette


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 2
Total Committers: 2
Avg Commits per committer: 1.0
Development Distribution Score (DDS): 0.5

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Lior Krispin l****n@L****l 1
LiorKri l****i@p****l 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 6
Total pull requests: 1
Average time to close issues: 25 days
Average time to close pull requests: N/A
Total issue authors: 1
Total pull request authors: 1
Average comments per issue: 0.67
Average comments per pull request: 0.0
Merged pull request: 0
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/RamiKrispin/UKgrid

Top Issue Authors

  • RamiKrispin (6)

Top Pull Request Authors

  • olivroy (1)

Top Issue Labels

  • enhancement (4)
  • task (2)

Top Pull Request Labels


Package metadata

cran.r-project.org: UKgrid

The UK National Electricity Transmission System Dataset

  • Homepage: https://github.com/RamiKrispin/UKgrid
  • Documentation: http://cran.r-project.org/web/packages/UKgrid/UKgrid.pdf
  • Licenses: MIT + file LICENSE
  • Latest release: 0.1.3 (published almost 5 years ago)
  • Last Synced: 2025-04-27T12:34:36.462Z (2 days ago)
  • Versions: 4
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 336 Last month
  • Rankings:
    • Stargazers count: 10.062%
    • Forks count: 10.871%
    • Dependent packages count: 17.656%
    • Average: 18.06%
    • Dependent repos count: 24.382%
    • Downloads: 27.329%
  • Maintainers (1)

Dependencies

DESCRIPTION cran
  • R >= 3.0.2 depends
  • data.table >= 1.11.2 imports
  • dplyr >= 0.7.5 imports
  • lubridate >= 1.6.0 imports
  • magrittr >= 1.5 imports
  • tsibble >= 0.9.0 imports
  • xts >= 0.12.0 imports
  • zoo >= 1.8 imports
  • TSstudio * suggests
  • devtools * suggests
  • knitr * suggests
  • remotes * suggests
  • rmarkdown * suggests
  • testthat * suggests

Score: 9.88644311792687