Open WesIngwersen opened 3 months ago
I've clarified the descriptions for this and aggregateResultMatrixbyRow()
in a61fc47. One is designed to aggregate a result matrix (G
or H
) while the other is to aggregate a sector by sector result such as what comes out of calculateSectorPurchasedbySectorSourcedImpact()
https://github.com/USEPA/useeior/blob/636a81b3f6a806a6c3b1d50f62c0cc4de977b9fe/R/CalculationFunctions.R#L417
correct usage would be for example, with
model
being a model object already built and assume model is a summary level model (would also work for detail)But this is not well documented, no examples are given and inconsistent with other functions like
adjustResultMatrixPrice()
where one specifies the matrix likeA_d
and not having to passmodel$A_d
. and also having to pass the wholemodel$crosswalk
is odd and then not clear what matrices can be passed... docs say "result matrix" but this actually fails for what are called result matrices likeM
andN
that are not sector x sector.