powered by
Create significant symbols for p-values
p_range(p)
A numeric p value (usually yielded from a statistical test).
p
A character significant symbol. * represents the p is within the range of (0.05, 0.01], ** for (0.01, 0.001], and *** for (0.001, +inf]
character
*
**
***
# NOT RUN { p_range(0.02) library(dplyr) t_test_one_sample(color_index, "color_index", mu = 0) %>% mutate(sig = p_range(p)) # }
Run the code above in your browser using DataLab