closure_table: Make a closure table from an adjacency list

Description Usage Examples

View source: R/closure_table.R

Description

Make a closure table from an adjacency list

Usage

1
closure_table(adj_list, parent_col = "parent", child_col = "child")

Examples

1
2
alist <- tibble::tibble(parent = c(1, 2, 2), child = c(2, 3, 4))
closure_table(alist)

jameelalsalam/nestedcats documentation built on June 2, 2020, 8:16 p.m.