preprocess_key_tree: Preprocess key tree

Description Usage Arguments Value

Description

This performs two functions, #1 it removes any key values not present in the supplied data, #2 it parses the tree and gives each entry a level number, where level zero is where the parent of the branch has not parents of its own (i.e. is a root)

Usage

1
preprocess_key_tree(data, dim_name, key_table_in)

Arguments

data

The data to be aggregated

dim_name

The name of the dimension in the data to aggregate

key_table_in

The key tree to prepare in the form data.table(parent,children)

Value

The prepared key tree with an added "level" column


SWS-Methodology/faoswsUtil documentation built on May 9, 2019, 11:53 a.m.