Learn R Programming

GimmeMyStats (version 1.0.0)

add_significance0: Add P-value Significance Symbols

Description

Redefine the default parameters of rstatix::add_significance() by adding p-value significance symbols to a data frame.

Usage

add_significance0(data, p.col = NULL, output.col = NULL)

Value

a data frame

Arguments

data

a data frame containing a p-value column.

p.col

column name containing p-values.

output.col

the output column name to hold the adjusted p-values.

Examples

Run this code
library(magrittr)
library(rstatix, warn.conflicts = FALSE)
data("ToothGrowth")
ToothGrowth %>%
    t_test(len ~ dose) %>%
    adjust_pvalue() %>%
    add_significance0("p.adj")

Run the code above in your browser using DataLab