% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/broom-tidy.R
\name{augment.RegionResult}
\alias{augment.RegionResult}
\title{Augment method for RegionResult (broom-compatible)}
\usage{
\method{augment}{RegionResult}(x, ...)
}
\arguments{
\item{x}{A [`RegionResult-class`].}

\item{...}{Unused (broom convention).}
}
\value{
A tibble (or data.frame fallback) with `nrow(out) == length(x@dataset@item_order)`
  and columns: `item` (character), one logical column per set (named after
  the set), `region_label` (character).
}
\description{
Returns one row per item in the dataset's universe, with boolean columns
indicating set membership and a `region_label` column naming the exact
region (e.g. `"A"`, `"AB"`, `"ABC"`) the item belongs to. Item ordering
follows `dataset@item_order` (first-seen across all sets, JS Set/Map
semantics).
}
\details{
Region labels use the package's positional letter convention (A-I),
matching the labels in `RegionResult@regions` and the bundled SVG models,
regardless of the dataset's `set_names`.
}
\examples{
ds <- methods::new("VennDataset",
    set_names = c("A", "B"),
    items = list(A = c("x", "y"), B = c("y", "z")),
    item_order = c("x", "y", "z"),
    universe_size = 10L, source_path = NULL, format = "csv")
result <- analyze(ds)
if (requireNamespace("broom", quietly = TRUE)) broom::augment(result)
\donttest{
result <- analyze(load_sample("dataset_real_cancer_drivers_4"))
broom::augment(result)
}
}
