format_pvalues_desctable: Format _p_-values for descriptive tables

View source: R/desc_utils.R

format_pvalues_desctableR Documentation

Format p-values for descriptive tables

Description

Converts numeric p-values to formatted strings with appropriate precision. Handles very small p-values with threshold notation (e.g., "< 0.001").

Usage

format_pvalues_desctable(result, p_digits, marks)

Arguments

result

Data.table with 'p_value' column to format.

p_digits

Integer number of decimal places for p-values.

marks

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

Value

Modified data.table with 'p_value' column (formatted strings).


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