newDemand | R Documentation |
Create new demand object
Update data in a demand object
newDemand(
name = "",
desc = character(),
commodity = character(),
unit = character(),
dem = data.frame(),
region = character(),
misc = list(),
...
)
## S4 method for signature 'demand'
update(object, ...)
name |
character. Name of the demand. |
desc |
character. Optional description of the demand for reference. |
commodity |
character. Name of the commodity for which the demand will be specified. |
unit |
character. Optional unit of the commodity. |
dem |
data.frame. Specification of the demand.
|
region |
character. Optional name of region to narrow the specification of the demand in the case of used NAs. Error will be returned if specified regions in |
misc |
list. Optional list of additional information. |
object |
demand object |
demand object with given specifications.
DSTEEL <- newDemand(
name = "DSTEEL",
desc = "Steel demand",
commodity = "STEEL",
unit = "Mt",
dem = data.frame(
region = "UTOPIA", # NA for every region
year = c(2020, 2030, 2050),
slice = "ANNUAL",
dem = c(100, 200, 300)
),
region = "UTOPIA", # optional, to narrow the specification of the demand
)
class(DSTEEL)
draw(DSTEEL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.