energy_mixes: Function to randomly generate a mix of energy from different...

Description Usage Arguments Value

View source: R/energy_mixes.R

Description

Function to randomly generate a mix of energy from different sources to meet the global energy demand

Usage

1
energy_mixes(energy, demand, probs)

Arguments

energy

a vector of the names of different energy sources (i.e. s = solar, w = wind etc)

demand

the amount of energy (in TWh) that you want to draw (i.e. the global demand)

probs

the probability of drawing each type of energy based on global energy potential for each source

Value

out a data frame consisting of the following items

energy_type

The different energy sources

TWh

The number of TWh provided by each energy source

percent_of_demand

The percent of total demand that comes from each energy source


saraorofino/test documentation built on March 12, 2020, 1:25 a.m.