Skip to content

Commit

Permalink
clarify functions #309
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Sep 4, 2024
1 parent f938989 commit a61fc47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/CalculationFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ calculateFlowContributiontoImpact <- function (model, sector, indicator, domesti

#' Aggregate result matrix by rows
#'
#' @param matrix A matrix with sectors as rows
#' @param matrix A result calculation matrix (e.g. `G` or `H`) with sectors as rows
#' @param to_level The level of BEA code this matrix will be aggregated to
#' @param crosswalk Sector crosswalk between levels of detail
#' @return An aggregated matrix with sectors as rows
#' @return An aggregated result calculation matrix with sectors as rows
aggregateResultMatrixbyRow <- function (matrix, to_level, crosswalk) {
# Determine the columns within MasterCrosswalk that will be used in aggregation
from_code <- "USEEIO"
Expand All @@ -449,7 +449,8 @@ aggregateResultMatrixbyRow <- function (matrix, to_level, crosswalk) {

#' Aggregate result matrix by rows and columns
#'
#' @param matrix A matrix with sectors as rows and columns
#' @param matrix A matrix of inventory or impact results with sectors as both rows and columns,
#' such as the output from calculateSectorPurchasedbySectorSourcedImpact()
#' @param to_level The level of BEA code this matrix will be aggregated to
#' @param crosswalk Sector crosswalk between levels of detail
#' @return An aggregated matrix with sectors as rows and columns
Expand Down

0 comments on commit a61fc47

Please sign in to comment.