powered by
Converts a data.frame to a data.tree format
dfToTree(df, hierarchy = colnames(df))
nested list
data.frame
ordered character vector of column names defining the hierarchy
Jasper Schelfhout jasper.schelfhout@openanalytics.eu
if (FALSE) { df <- data.frame(Titanic) tree <- dfToTree(df, c("Sex", "Class", "Survived")) }
Run the code above in your browser using DataLab