Create significant symbols for p-values
p_range(p)
p | A numeric |
---|
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]
p_range(0.02)#> [1] "*"#> #>#>#> #>#>#> #>#> Warning: The `t_test_one_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall column.#> Warning: `...` must not be empty for ungrouped data frames. #> Did you want `data = everything()`?#> # A tibble: 1 x 5 #> tvalue df p p_bonferroni sig #> <dbl> <dbl> <dbl> <dbl> <chr> #> 1 4.44 231 0.0000142 0.0000142 ***