View source: R/hierarchical_df.R
Convert a flat data frame that contains a hierarchy into nested lists that are more appropriate for hierarchies
1 2 | data.frame.hierarchical(x, hierarchy, leaves.name,
leaves)
|
x |
- a flat data frame |
hierarchy |
- a vector of integers representing which columns form the hierarchy |
leaves.name |
- what should the names of the leaf nodes be |
leaves |
- a vector of integers representing which columns form the leaves |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.