calculateShareDownUp: Function to compute shares (to express a derived commodities...

View source: R/calculateShareDownUp.R

calculateShareDownUpR 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.

Description

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.

Usage

calculateShareDownUp(data, tree, printNegativeAvailability = FALSE, params,
  printDirectory = NULL, useAllSUAcomponents = FALSE)

Arguments

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


SWS-Methodology/faoswsProduction documentation built on March 21, 2023, 8:27 p.m.