treeToDf {shinyTree} | R 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)
[Package shinyTree version 0.3.1 Index]