Skip to contents

Handles both column-based clauses (<clause><column/></clause>) and expression-based predicates (<expression op=...>) found in TWB XML.

Usage

extract_joins(xml_doc)

Arguments

xml_doc

An xml2 document for a Tableau .twb.

Value

A tibble with columns:

join_type

Join kind (e.g., inner, left), if available.

left_table

Left table name (cleaned).

left_field

Left field name.

operator

Predicate operator (defaults to "=" when missing).

right_table

Right table name (cleaned).

right_field

Right field name.

Examples

if (FALSE) { # \dontrun{
xml <- xml2::read_xml("inst/extdata/sample.twb")
extract_joins(xml)
} # }