treeToDf: Convert tree into data.frame

View source: R/data.tree-conversion.R

treeToDfR Documentation

Convert tree into data.frame

Description

Convert tree into data.frame

Usage

treeToDf(tree, hierarchy = NULL)

Arguments

tree

named nested list

hierarchy

sorted character vector with name for each level of the list

Value

data.frame

Author(s)

Michael Bell

Examples

## Not run: 
df <- data.frame(Titanic)
tree <- dfToTree(df, c("Sex", "Class", "Survived"))
newDf <- treeToDf(tree, c("Sex", "Class", "Survived"))

## End(Not run)

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