applyAllocation: Allocate values specified by the .yml disaggregation specs to...

applyAllocationR Documentation

Allocate values specified by the .yml disaggregation specs to the correct places in a disaggregated row/column of the Use/Make tables.

Description

Allocate values specified by the .yml disaggregation specs to the correct places in a disaggregated row/column of the Use/Make tables.

Usage

applyAllocation(disagg, allocPercentages, vectorToDisagg, originalTable)

Arguments

disagg

Specifications for disaggregating the current Table

allocPercentages

Dataframe. A subset of the dataframe that contains the percentages to allocate to specific industry and commodity combinations in the disaggregated vector. Parameter use coordinated with @param vectorToDisagg

vectorToDisagg

String. A parameter to indicate what table and what part of that table is being disaggregated (e.g. "MakeCol" or "Intersection")

originalTable

Dataframe. The original dataframe upon which allocation is performed (e.g., Make or Use)

Value

A dataframe with the values specified in the disaggSpecs assigned to the correct Make or Use table indeces.


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