Displays a concise text summary of the pipeline steps and their
parameters. Intended for interactive inspection of a selecta
object before rendering.
Usage
# S3 method for class 'selecta'
print(x, ...)Details
The print method gives a compact, text-only view of a
selecta object for interactive inspection before rendering. It
lists the operating mode, the starting count, and each pipeline step with
its key parameters (exclusion reasons, arm labels, endpoint sub-items),
and marks phase boundaries with a “— Label —” banner. It does
not draw the diagram or open a graphics device; for that use
flowchart() or flowsave().
See also
summary.selecta for a tabular per-node summary,
flowchart for rendering
Other flowchart output functions:
flowchart(),
flowsave(),
recdims(),
summary.selecta()
Examples
flow <- enroll(n = 500) |>
exclude("Ineligible", n = 65,
reasons = c("No consent" = 30, "Under 18" = 35)) |>
allocate(labels = c("Drug A", "Placebo"), n = c(218, 217)) |>
endpoint("Analyzed")
flow
#> selecta flow (manual mode)
#> Starting N: 500
#> Steps: 3
#> [1] exclude: "Ineligible" (n = 65)
#> • No consent = 30
#> • Under 18 = 35
#>
#> [2] stratify: Drug A, Placebo
#> label: "Randomized"
#> [3] endpoint: "Analyzed"