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

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Add a column of matrix names to tidy data frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1

matsindf documentation built on Aug. 24, 2020, 5:09 p.m.