calc_sig_ind | R Documentation |
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
calc_sig_ind(p_value, html = TRUE)
p_value |
A p-value or vector of p-values. Can handle numeric or characters with text. |
html |
Logical; if |
A character value or vector
library(dplyr)
pvals <- c(.133213, .06023, .004233, .000000134234, 1.0)
pvals_2 <- c(.133213, .06023, .004233, .000000134234, NA)
calc_sig_ind(pvals)
calc_sig_ind(pvals_2)
df <- tibble::tibble(p = pvals,
p_2 = pvals_2)
df %>%
mutate(p_sig = calc_sig_ind(p),
p_2_sig = calc_sig_ind(p_2)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.