add_UKEnergy2000_matnames: Add a column of matrix names to tidy data frame

View source: R/utilities.R

add_UKEnergy2000_matnamesR Documentation

Add a column of matrix names to tidy data frame

Description

Add a column of matrix names to tidy data frame

Usage

add_UKEnergy2000_matnames(
  .DF,
  ledger_side_colname = "Ledger.side",
  energy_colname = "E.ktoe",
  supply_side = "Supply",
  consumption_side = "Consumption",
  matname_colname = "matname",
  U_name = "U",
  V_name = "V",
  Y_name = "Y"
)

Arguments

.DF

a data frame with ledger_side_colname and energy_colname.

ledger_side_colname

the name of the column in .DF that contains ledger side (a string). Default is "Ledger.side".

energy_colname

the name of the column in .DF that contains energy values (a string). Default is "E.ktoe".

supply_side

the identifier for items on the supply side of the ledger (a string). Default is "Supply".

consumption_side

the identifier for items on the consumption side of the ledger (a string). Default is "Consumption".

matname_colname

the name of the output column containing the name of the matrix in which this row belongs (a string). Default is "UVY".

U_name

the name for the use matrix (a string). Default is "U".

V_name

the name for the make matrix (a string). Default is "V".

Y_name

the name for the final demand matrix (a string). Default is "Y".

Value

.DF with an added column, UVY_colname.

Examples

matsindf:::add_UKEnergy2000_matnames(UKEnergy2000)

MatthewHeun/matsindf documentation built on Feb. 4, 2024, 5:16 a.m.