Learn R Programming

Relexon (version 0.2.1)

elexonURL: elexonURL

Description

This function gives either a single URL or many URLs that can be used to download csv files manually. Please note: it does not matter if BMRS requires the dates to be in a different format to "yyyy-mm-dd". The Relexon package will take care of this. Just enter the dates in the usual format!

Usage

elexonURL(dataset = "ROLSYSDEM", key, from = Sys.Date() - 2,
  to = Sys.Date() - 1, test = FALSE)

Arguments

dataset

The dataset you are pulling from BMRS/Elexon.

key

Your personal scripting key from elexon. Find out more at https://www.elexonportal.co.uk

from

This is the start date/datetime of the dataset

to

This is the end date/datetime of the dataset

test

This is set to FALSE by default. Set this argument to TRUE if you want to use the test version of the API.

Examples

Run this code
# NOT RUN {
elexonURL(
"HHFUEL",
key = "948ghmgpe",
from  = "2018-01-01",
to = "2018-01-05",
test = TRUE
)
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab