This function is adapted from `shinyWidgets::create_tree()`. A big thank you to the authors of the shinyWidgets for creating the `create_tree()` function.
asMuiTree(data, levels = names(data), levels_id = NULL, ...)a `list` that can be used in [RichTreeView()].
A `data.frame`.
Variables identifying hierarchical levels, values of those variables will be used as text displayed.
Variable to use as ID for nodes. Careful! Spaces are not allowed in IDs.
Addtional arguments.
`shinyWidgets::create_tree()`