| create_rollup_tree | R Documentation |
rollup()create_rollup_tree() creates a tree suitable for use with rollup()
by applying helper functions to construct vertices and edges.
create_rollup_tree(get_keys, get_parent_key_by_child_key)
get_keys |
A function() that returns a collection of names for vertices. |
get_parent_key_by_child_key |
A function(key) that returns for each child key the key of its parent. |
An igraph directed graph with vertices and edges as supplied
get_keys <- function() wbs_table$id
get_parent_key_by_child_key <- function(key) wbs_table[which(wbs_table$id == key), "pid"]
create_rollup_tree(get_keys, get_parent_key_by_child_key)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.