powered by
Formats p-values as strings with specified precision and optional significance asterisks.
format_p(p, digit = 3, asterisk = FALSE)
Character of formatted p-value or asterisks.
A numeric p-value between 0 and 1.
A numeric determine decimal. Accepts:
3:convert to 3 decimal, default
3
4:convert to 4 decimal
4
Logical indicating whether to return significance asterisks.
format_p(0.00009, 4) format_p(0.03, 3) format_p(0.02, asterisk = TRUE)
Run the code above in your browser using DataLab