Skip to content

Commit

Permalink
Merge pull request #316 from USEPA/issue_309
Browse files Browse the repository at this point in the history
clarify functions
  • Loading branch information
bl-young authored Dec 5, 2024
2 parents 5a6a62a + 3b563e5 commit 1356e55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions R/CalculationFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,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 @@ -450,7 +450,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
3 changes: 2 additions & 1 deletion man/aggregateResultMatrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/aggregateResultMatrixbyRow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1356e55

Please sign in to comment.