Add a column of matrix names to tidy data frame
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")
a data frame with ledger_side_colname
and energy_colname
.
the name of the column in .DF
that contains ledger side
(a string). Default is "Ledger.side
".
the name of the column in .DF
that contains energy values
(a string). Default is "E.ktoe
".
the identifier for items on the supply side of the ledger (a string).
Default is "Supply
".
the identifier for items on the consumption side
of the ledger (a string). Default is "Consumption
".
the name of the output column containing the name of the matrix
in which this row belongs (a string). Default is "UVY
".
the name for the use matrix (a string). Default is "U
".
the name for the make matrix (a string). Default is "V
".
the name for the final demand matrix (a string). Default is "Y
".
.DF
with an added column, UVY_colname
.
# NOT RUN {
matsindf:::add_UKEnergy2000_matnames(UKEnergy2000)
# }
Run the code above in your browser using DataLab