Function to format an R object for pretty printing with a
specified (k
) number of decimal places. The function also allows highly
significant p-values to be denoted as "p < 0.001" rather than "p = 0.000".
specify_decimal_p(x, k = 3, p.value = FALSE)
A numeric variable.
Number of digits after decimal point (should be an integer) (Default: k = 3
).
Decides whether the number is a p-value (Default: FALSE
).
Formatted numeric values.