create_tree {shinyWidgets} | R Documentation |
Create choice structure for treeInput()
Description
Create choice structure for treeInput()
Usage
create_tree(data, levels = names(data), levels_id = NULL, ...)
Arguments
data |
A |
levels |
Variables identifying hierarchical levels, values of those variables will be used as text displayed. |
levels_id |
Variable to use as ID for nodes. Careful! Spaces are not allowed in IDs. |
... |
Addtional arguments. |
Value
a list
that can be used in treeInput()
.
[Package shinyWidgets version 0.8.6 Index]