Learn R Programming

riskdiff (version 0.2.1)

create_simple_table: 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")

Value

A formatted character vector representing the table

Arguments

results

Results tibble from calc_risk_diff()

title

Optional title for the table

Examples

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

Run the code above in your browser using DataLab