| p_to_symbol | R Documentation |
Convert p-values to standard significance symbols
p_to_symbol(
p_values,
symbols = c("***", "**", "*", "ns"),
breaks = c(0, 0.001, 0.01, 0.05, 1)
)
p_values |
Numeric vector of p-values |
symbols |
Character vector of symbols for different significance levels. Default: c("***", "**", "*", "ns") |
breaks |
Numeric vector of p-value thresholds. Default: c(0, 0.001, 0.01, 0.05, 1) |
Character vector of significance symbols
p_to_symbol(c(0.0001, 0.005, 0.03, 0.15))
# Returns: "***" "**" "*" "ns"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.