copy_family: Copy family data

Description Usage Arguments Details Value Examples

View source: R/copy_family.R

Description

Copy one list of familyR data to another.

Usage

1
copy_family(graph_dt)

Arguments

graph_dt

graph_dt; Graph_dt list of data.tables with edges and nodes

Details

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.

Value

A copied version of the inputted graph_dt data.tables.

Examples

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)

emillykkejensen/familyR documentation built on May 4, 2019, 3:12 a.m.