calculateSectorContributiontoImpact: Calculate the percent contribution of sectors to...

calculateSectorContributiontoImpactR Documentation

Calculate the percent contribution of sectors to direct+indirect impacts by an indicator, using the product of model L matrix (total requirements) and D matrix (direct impacts by indicator).

Description

Calculate the percent contribution of sectors to direct+indirect impacts by an indicator, using the product of model L matrix (total requirements) and D matrix (direct impacts by indicator).

Usage

calculateSectorContributiontoImpact(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 L matrix, e.g. "221100/US".

indicator

str, index of a model indicator for use in the D 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 "L", "D", "impact".


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