powered by
Format p-values.
format_p(p, stars = FALSE, stars_only = FALSE, name = "p", missing = "")
value or vector of p-values.
Add significance stars (e.g., p < .001***).
Return only significance stars.
Name prefixing the text. Can be NULL.
NULL
Value by which NA values are replaced. By default, an empty string (i.e. "") is returned for NA.
NA
""
A formatted string.
# NOT RUN { format_p(c(.02, .065, 0, .23)) format_p(c(.02, .065, 0, .23), name = NULL) format_p(c(.02, .065, 0, .23), stars_only = TRUE) # }
Run the code above in your browser using DataLab