get_selected: Get the selected nodes from a tree

View source: R/get-selected.R

get_selectedR Documentation

Get the selected nodes from a tree

Description

Extract the nodes from the tree that are selected in a more convenient format. You can choose which format you prefer.

Usage

get_selected(tree, format = c("names", "slices", "classid"))

Arguments

tree

The input$tree shinyTree you want to inspect.

format

In which format you want the output. Use names to get a simple list of the names (with attributes describing the node's ancestry), or slices to get a list of lists, each of which is a slice of the list used to get down to the selected node.


trestletech/shinyTree documentation built on Sept. 27, 2024, 4:38 a.m.