Make a single node node table

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

## 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" )
#> # A tibble: 3 x 2 #> node_A node_B #> <chr> <chr> #> 1 A B #> 2 A C #> 3 A B