Description Usage Arguments Value Author(s) Examples
View source: R/misc functions.R
This function will add a new column with significance labels to a dataframe containing *p*-values.
1 | signif_column(data, p, ...)
|
data |
Data frame from which variables specified are preferentially to be taken. |
p |
The column containing *p*-values. |
... |
Currently ignored. |
Returns the dataframe in tibble format with an additional column corresponding to APA-format statistical significance labels.
Indrajeet Patil
1 2 3 4 5 6 7 8 9 | # preparing a new dataframe
df <- cbind.data.frame(
x = 1:5,
y = 1,
p.value = c(0.1, 0.5, 0.00001, 0.05, 0.01)
)
# dataframe with significance column
signif_column(data = df, p = p.value)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.