p_to_asterisk | R Documentation |
Add asterisks to p values
p_to_asterisk(
x,
asterisks = c(0.01, 0.005, 0.001),
digits = max(count_decimals(asterisks)),
asterisks_only = F
)
x |
p values vector |
asterisks |
Thresholds |
digits |
Number of digits |
asterisks_only |
Only print asterisks |
character vctor
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk()
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk(asterisks = c(.05, .01))
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk(asterisks = c(.05))
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk(asterisks = c())
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk(asterisks = NULL)
c(.123, .009, .004, .0009, .0001) %>% p_to_asterisk(asterisks_only = T)
p_to_asterisk(NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.