Create categories from a hierarchy (parent-code) list The result is a data frame with the same number of rows as the hierarchy, where the first column consists only of the roots, the second column of the roots and their children and so un until the last column consists of all nodes, so each row is a path to the root
1 | .create.cats(hierarchy, label = "code", maxdepth = NULL)
|
label |
column names to generate: label, label.p1, label.p2 etc |
maxdepth |
number of columns to keep, not counting the code column. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.