applyAllocation | R Documentation |
Allocate values specified by the .yml disaggregation specs to the correct places in a disaggregated row/column of the Use/Make tables.
applyAllocation(disagg, allocPercentages, vectorToDisagg, originalTable)
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) |
A dataframe with the values specified in the disaggSpecs assigned to the correct Make or Use table indeces.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.