Function to format an R object for pretty printing with a specified 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 = NULL, p.value = FALSE)
A numeric variable.
Number of digits after decimal point (should be an integer).
Decides whether the number is a p-value (Dafault: FALSE
).
formatted p-values from statistical tests