format_survival_ci: Format survival median with CI for display

View source: R/number_utils.R

format_survival_ciR Documentation

Format survival median with CI for display

Description

Formats a survival median estimate with confidence interval using locale-aware decimal marks and safe CI separators. Used by process_survival in descriptive tables.

Usage

format_survival_ci(median, lower, upper, fmt_str, marks)

Arguments

median

Numeric median survival time.

lower

Numeric lower CI bound.

upper

Numeric upper CI bound.

fmt_str

Character string sprintf format specification.

marks

List with big.mark and decimal.mark as returned by resolve_number_marks.

Value

Character string with formatted "median (lower-upper)".


summata documentation built on May 7, 2026, 5:07 p.m.