add_significance | R Documentation |
Given a data.frame
with a column containing p-values or two columns
containing the lower- and upper bounds of a confidence interval, adds a
column of significance asterisks.
add_significance(x, p_column = NULL, ci_lb = NULL, ci_up = NULL, alpha = 0.05)
x |
A |
p_column |
Atomic character, referring to the name of the column of
p-values. If this is provided, the confidence interval is ignored. Default:
|
ci_lb |
Atomic character, referring to the name of the column of
the lower bound of a confidence interval. Default: |
ci_up |
Atomic character, referring to the name of the column of
the upper bound of a confidence interval. Default: |
alpha |
Significance level, default: |
A data.frame
tmp <- add_significance(head(iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.