Summarises a lineage object's nodes: one row per table with its diagram role and column count.
Arguments
- lineage
The result of
extract_lineage(), or any list withnodesandedgesbuilt withcreate_table_node()andcreate_column_edge().
See also
Other lineage accessors:
lineage_diff(),
lineage_edges(),
lineage_upstream()
Examples
lineage <- list(
nodes = list(
create_table_node("orders", c("order_id", "amount")),
create_table_node("daily_totals", "total", table_type = "target")
),
edges = list()
)
lineage_tables(lineage)
#> table type n_columns
#> 1 orders source 2
#> 2 daily_totals target 1