powered by
Convert tree into data.frame
treeToDf(tree, hierarchy = NULL)
data.frame
named nested list
sorted character vector with name for each level of the list
Michael Bell
if (FALSE) { df <- data.frame(Titanic) tree <- dfToTree(df, c("Sex", "Class", "Survived")) newDf <- treeToDf(tree, c("Sex", "Class", "Survived")) }
Run the code above in your browser using DataLab