Skip to contents

Summarises a lineage object's nodes: one row per table with its diagram role and column count.

Usage

lineage_tables(lineage)

Arguments

lineage

The result of extract_lineage(), or any list with nodes and edges built with create_table_node() and create_column_edge().

Value

A data frame with columns table, type ("source", "transform", or "target"), and n_columns.

See also

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