format_pvalue: Format P-value
Description
Formats a p-value with specified decimal places and prefix.
Usage
format_pvalue(p, digits = 3, prefix = "p=")
Value
Formatted p-value string.
Arguments
- p
Numeric p-value.
- digits
Number of decimal places.
- prefix
Prefix string (e.g., "p=").