format_pvalue: Format a _p_-value with locale-aware decimal mark

View source: R/number_utils.R

format_pvalueR Documentation

Format a p-value with locale-aware decimal mark

Description

Converts a numeric p-value to a display string with the correct decimal separator and threshold notation (e.g., "< 0.001" or "< 0,001").

Usage

format_pvalue(p, digits, marks)

Arguments

p

Numeric p-value.

digits

Integer number of decimal places.

marks

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

Value

Character string with the formatted p-value.


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