Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify functions #316

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.