Description Usage Arguments Value
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)
1 | preprocess_key_tree(data, dim_name, key_table_in)
|
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) |
The prepared key tree with an added "level" column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.