get_grid_mix: Gets mix of fuel sources in UK electricity

Description Usage Arguments Value Source Examples

View source: R/carbon-intensity.r

Description

Gets the mix of fuel sources used to generate UK grid electricity between specified dates. Valid dates are yyyy-mm-dd and must be between 2009-01-01 and the current day; the start must come before the end date.

Usage

1

Arguments

start

the start date for retrieving data.

end

the end date for retrieving data

Value

a data frame with a datetime stamp and average power generated by fuel type in MW

Source

The underlying data come from BM Reports, http://www.bmreports.com/bsp/bsp_home.htm, and are used under license from Elexon (see disclaimer below). However the BM Reports website is hard to use and so this function uses archived Elexon data compiled by the charity Renewable Energy Foundation and available at no cost at http://www.ref.org.uk/fuel/.

ELEXON does not and shall not be deemed to warrant or guarantee or make any representation (whether expressly or impliedly) as to the title, completeness, accuracy, reliability, freeness from error, method of preparation, merchantability or fitness for the purpose or for any particular purpose (whether or not any such purpose has been notified to ELEXON) of the Licensed Data and/or any use of or dealing with it. ELEXON shall have no liability or responsibility whatsoever or howsoever arising (whether directly or indirectly) as a result of or in connection therewith, including in respect of each and all loss of profits, loss of revenue, loss of goodwill, loss of contracts, loss of business or production, indirect loss, economic or consequential loss, claims, demands, proceedings, actions, losses, liabilities, damages, costs, charges and expenses (whether or not any of the foregoing are foreseeable)

Examples

1
2
3
4
5
6
# These require a working internet connection
start <- "2010-01-01"
end <- "2010-01-03"

# Gets data for 1-3 January 2010
data <- get_grid_mix(start, end)

jkeirstead/decctools documentation built on May 19, 2019, 11:41 a.m.