signif_column | R Documentation |
This function will add a new column with significance labels to
a dataframe containing p-values.
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
# 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.