createTriplet: This function creates the triplet element for an item if the...

View source: R/createTriplet.R

createTripletR Documentation

This function creates the triplet element for an item if the full triplet is missing.

Description

The element triplet includes the input, productivity and output. However, for certain commodities certain element was never collected and under the sparse data representation the element is not availble.

Usage

createTriplet(data, formula)

Arguments

data

The data, must be denormalised

formula

The formula table, see getYieldFormula.

Details

This function creates the temporary element that is required for processing.

Value

The original data if the triplet is present, otherwise a new data.table with the missing elements created.


SWS-Methodology/faoswsProcessing documentation built on June 24, 2024, 6:57 a.m.