create_simple_table: Create a Simple Summary Table

View source: R/formatting.R

create_simple_tableR Documentation

Create a Simple Summary Table

Description

Creates a simple text-based summary table that doesn't require kableExtra.

Usage

create_simple_table(results, title = "Risk Difference Results")

Arguments

results

Results tibble from calc_risk_diff()

title

Optional title for the table

Value

A formatted character vector representing the table

Examples

data(cachar_sample)
results <- calc_risk_diff(cachar_sample, "abnormal_screen", "smoking")
cat(create_simple_table(results))


riskdiff documentation built on June 30, 2025, 9:07 a.m.