hier_export | R Documentation |
This function allows to write nested hierarchies into files on your disk.
hier_export(tree, as = "df", path, verbose = FALSE)
tree |
a (nested) hierarchy created using |
as |
(character) specifying the export format. Possible choices are:
|
path |
(character) relative or absolute path where results should be written to |
verbose |
(logical) additional results |
h <- hier_create(root = "Total", nodes = LETTERS[1:2])
h <- hier_add(h, root = "A", nodes = c("a1", "a2"))
h <- hier_add(h, root = "B", nodes = c("b1", "b2"))
h <- hier_add(h, root = "b1", nodes = "b1a")
hier_display(h)
# export as input for tauArgus
hier_export(h, as = "argus", path = file.path(tempdir(), "h.hrc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.