Add allocation matrices to a data frame
calc_C_mats.Rd
This function adds allocation matrices (C_Y
and C_EIOU
) to the previously-created
CompletedAllocationTables
target.
Usage
calc_C_mats(
completed_allocation_tables,
countries,
matrix_class = c("matrix", "Matrix"),
country = IEATools::iea_cols$country,
year = IEATools::iea_cols$year,
c_source = IEATools::template_cols$c_source,
.values = IEATools::template_cols$.values,
C_Y = IEATools::template_cols$C_Y,
C_EIOU = IEATools::template_cols$C_eiou
)
Arguments
- completed_allocation_tables
The completed allocation tables from which allocation (
C
) matrices should be created. This data frame is most likely to be theCompletedAllocationTables
target.- countries
The countries for which
C
matrices should be formed.- matrix_class
The type of matrix that should be produced. One of "matrix" (the default and not sparse) or "Matrix" (which may be sparse).
- country, year
See
IEATools::iea_cols
.- c_source, .values, C_Y, C_EIOU