Learn R Programming

shinyWidgets (version 0.8.7)

create_tree: Create choice structure for treeInput()

Description

Create choice structure for treeInput()

Usage

create_tree(data, levels = names(data), levels_id = NULL, ...)

Value

a list that can be used in treeInput().

Arguments

data

A data.frame.

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.