Description Usage Arguments Details Value Examples
Copy one list of familyR data to another.
1 | copy_family(graph_dt)
|
graph_dt |
graph_dt; Graph_dt list of data.tables with edges and nodes |
As familyR relies on data.table it also builds on the principle of changing input by reference. Therefor you need to specify, that you want to copy data from on data.table to another insted of just creating a new reference. This is, what the copy_family does.
A copied version of the inputted graph_dt data.tables.
1 2 3 4 5 6 7 8 | my_network <- data.table::data.table(
from = c("A", "A", "B", "C", "X", "Y"),
to = c("B", "C", "D", "E", "Y", "Z")
)
my_family <- get_familytree(my_network, "B")
my_copied_family <- copy_family(my_family)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.