asMuiTree: Create choice structure for [RichTreeView()]

asMuiTreeR Documentation

Create choice structure for [RichTreeView()]

Description

This function is adapted from 'shinyWidgets::create_tree()'. A big thank you to the authors of the shinyWidgets for creating the 'create_tree()' function.

Usage

asMuiTree(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 [RichTreeView()].

See Also

'shinyWidgets::create_tree()'


muiTreeView documentation built on Oct. 12, 2026, 5:08 p.m.