Add row, column, row type, and column type metadata
add_UKEnergy2000_row_col_meta(.DF, matname_colname = "matname",
U_name = "U", V_name = "V", Y_name = "Y",
product_colname = "Product", flow_colname = "Flow",
industry_type = "Industry", product_type = "Product",
sector_type = "Sector", rowname_colname = "rowname",
colname_colname = "colname", rowtype_colname = "rowtype",
coltype_colname = "coltype")
a data frame containing matname_colname
.
the name of the column in .DF
that contains names of matrices
(a string). Default is "matname
".
the name for use matrices (a string). Default is "U
".
the name for make matrices (a string). Default is "V
".
the name for final demand matrices (a string). Default is "Y
".
the name of the column in .DF
where Product names
is found (a string). Default is "Product
".
the name of the column in .DF
where Flow information is found
(a string).
The Flow column usually contains the industries involved in this flow.
Default is "Flow
".
the name that identifies production industries and
and transformation processes (a string). Default is "Industry
".
the name that identifies energy carriers (a string).
Default is "Product
".
the name that identifies final demand sectors (a string).
Default is "Sector
".
the name of the output column that contains row names for matrices
(a string). Default is "rowname
".
the name of the output column that contains column names for matrices
(a string). Default is "colname
".
the name of the output column that contains row types for matrices
(a string). Default is "rowtype
".
the name of the output column that contains column types for matrices
(a string). Default is "coltype
".
.DF
with additional columns named
rowname_colname
, colname_colname
,
rowtype_colname
, and coltype_colname
.
# NOT RUN {
UKEnergy2000 %>%
matsindf:::add_UKEnergy2000_matnames(.) %>%
matsindf:::add_UKEnergy2000_row_col_meta(.)
# }
Run the code above in your browser using DataCamp Workspace