hier_app | R Documentation |
This function starts the interactive shiny
-app
to (optionally) create and/or modify a nested hierarchy.
It is possible to supply a character vector from which the
hierarchy can be interactively built. Once this has been done,
it is possible to modify and export the resulting hierarchy.
hier_app(x = hier_create(), ...)
x |
a character vector containing nested levels or
an object generated with |
... |
arguments (e.g |
Another option is to supply an already existing hierarchy object. In this case, it is possible to modify the existing object in the app.
The app can return a hierarchy object (either
a data.frame
or a tree-based object)
## Not run:
# start with an empty hierarchy
res <- hier_app()
# start with a character vector that is used to
build the hierarchy
codes <- c("11", "12", "21", "22", "23", "31", "32")
res <- hier_app(codes); print(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.