calculateFlowContributiontoImpact: Calculate the percent contribution of flows to...

calculateFlowContributiontoImpactR Documentation

Calculate the percent contribution of flows to direct+indirect impacts by an indicator, using model M matrix for total impacts of flows and C matrix for indicator.

Description

Calculate the percent contribution of flows to direct+indirect impacts by an indicator, using model M matrix for total impacts of flows and C matrix for indicator.

Usage

calculateFlowContributiontoImpact(model, sector, indicator, domestic = FALSE)

Arguments

model

A complete EEIO model: a list with USEEIO model components and attributes.

sector

str, index of a model sector for use in the M matrix, e.g. "221100/US".

indicator

str, index of a model indicator for use in the C matrix, e.g. "Acidification Potential".

domestic

boolean, sets model to use domestic flow matrix. Default is FALSE.

Value

A dataframe sorted by contribution (high-to-low), also showing "M", "C", "impact".


USEPA/useeior documentation built on April 12, 2024, 1:36 p.m.