View source: R/class-commodity.R
newCommodity | R Documentation |
Create new commodity object
newCommodity(
name = "",
desc = "",
limtype = "LO",
timeframe = character(),
unit = character(),
agg = data.frame(),
emis = data.frame(),
misc = list()
)
name |
character. Name of the commodity. |
desc |
character. Optional description of the commodity for reference. |
limtype |
factor or character. The limit type of the commodity in balance equation, "LO", "UP", or "FX". "LO" by default, meaning that the level of commodity in the model is restricted with the lower bound, excess is allowed. "UP" means that the level of commodity cannot exceed the upper bound. "FX" means that total commudity supply and demand are equal, no excess or deficit is allowed. |
timeframe |
character. The default time-frame this commodity operates in the model. The lowest timeframe in the model is used by default. |
unit |
character. The main unit of the commodity used in the model. |
agg |
data.frame. Used to define an aggregation of several commodities into the
|
emis |
data.frame. Emissions factors related to the commodity consumption (if "combustion" parameter of a technology which consumes the commodity is > 0).
|
misc |
list. List of additional parameters that are not used in the model but can be used for reference or user-defined functions. For example, links to the source of the commodity data, or other metadata. |
commodity object
newCommodity(name = "ELC", desc = "Electricity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.