Learn R Programming

roistats (version 0.1.1)

p_range: Create significant symbols for p-values

Description

Create significant symbols for p-values

Usage

p_range(p)

Arguments

p

A numeric p value (usually yielded from a statistical test).

Value

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]

Examples

Run this code
# 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