Description Usage Arguments Value Examples
Use merge_family() to merge family data into one list.
1 |
... |
graph_dt; Graph_dt data.tables from get_children(), get_parents() or get_familytree() |
merge_family() will return the inputted graph_dt data.tables merged together in one list (containing nodes and edges).
1 2 3 4 5 6 7 8 9 | my_network <- data.table::data.table(
from = c("A", "A", "B", "C", "X", "Y"),
to = c("B", "C", "D", "E", "Y", "Z")
)
my_parents <- get_parents(my_network, "B")
my_children <- get_children(my_network, "B")
merged_family <- merge_family(my_parents, my_children)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.