create_tree: Create choice structure for 'treeInput()'

View source: R/tree-utils.R

create_treeR 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 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.

Value

a list that can be used in treeInput().


shinyWidgets documentation built on Sept. 23, 2024, 9:07 a.m.