getPrimary: Function trace back to the primary item starting from an...

View source: R/getPrimary.R

getPrimaryR Documentation

Function trace back to the primary item starting from an edge-item. It uses the commodity tree to go back level by level untill the first one.

Description

Function trace back to the primary item starting from an edge-item. It uses the commodity tree to go back level by level untill the first one.

Usage

getPrimary(edge, tree, standParams)

Arguments

edge

a CPC (or a vector of CPC codes)

tree

Commodity tree, data.table

standParams

computation parameters


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