latex.linf.csts: Render dCSTs as a LaTeX table

View source: R/linf.R

latex.linf.cstsR Documentation

Render dCSTs as a LaTeX table

Description

Generates LaTeX code summarizing dCSTs at a specified hierarchy depth. Uses the explicit dCST hierarchy stored in cst.levels when available.

Usage

latex.linf.csts(
  csts,
  depth = NULL,
  caption = NULL,
  label = NULL,
  digits = 1,
  include.percent = TRUE
)

Arguments

csts

A dCST object produced by linf.csts() and optionally refined by refine.linf.csts() or refine.linf.csts.iter().

depth

Integer. dCST depth to render. Default is the leaf level (csts$cst.depth). If cst.levels is missing, depth is ignored.

caption

Character or NULL. LaTeX table caption.

label

Character or NULL. LaTeX label for referencing the table.

digits

Integer. Digits to display for percentages. Default: 1.

include.percent

Logical. If TRUE, include percent of total samples.

Details

This function is hierarchy-aware. It does not infer dCST depth from label strings. If the dCST object does not contain cst.levels, the function falls back to using cell.label as a single-level dCST.

Value

Character vector containing LaTeX table code.


linf documentation built on Aug. 5, 2026, 9:08 a.m.