make_single_node_node_table_: Make a single node node table

Description Usage Arguments Value Examples

Description

Make a single node node table

Usage

1
make_single_node_node_table_(.data, .id, node, link)

Arguments

.data

a data frame with one row per (node, link)

.id

id of a node

node

name of the node variable

link

name of the link variable

Value

a data frame with one row per node, node : ie one row per link

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Toy data
library("tibble")

toy_data <- tibble::tibble(
node = c("A", "B", "C", "A", "B"),
link = c("a", "a", "b", "b", "b")
)

make_single_node_node_table_(
.data = toy_data,
.id = "A",
node = "node",
link = "link"
)

blaquans/tricky documentation built on May 12, 2019, 9:29 p.m.