View source: R/calculateShareDownUp.R
calculateShareDownUp | R Documentation |
Function to compute shares (to express a derived commodities in its primary (or at least a higher) level. This function has been written to be used in the DerivedCommodies_submodule which works level by level. That's why this kind of shares are used to transform the derived into its direct parent. that it is allocated in different productive processes.
calculateShareDownUp(data, tree, printNegativeAvailability = FALSE, params,
printDirectory = NULL, useAllSUAcomponents = FALSE)
data |
input data.table: SUA table |
tree |
Commodity tree, data.table |
printNegativeAvailability |
It is TRUE if you want to produce csv file containing nagative availabilities |
params |
computation parameters |
printDirectory |
where intermidiate output should be saved in case printNegativeAvailability is TRUE |
useAllSUAcomponents |
Corrently the availability is computing just a subset of components, this parameter allows to use all the components |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.