signif_column: Creating a new column with significance labels

Description Usage Arguments Value Author(s) Examples

View source: R/misc functions.R

Description

This function will add a new column with significance labels to a dataframe containing *p*-values.

Usage

1

Arguments

data

Data frame from which variables specified are preferentially to be taken.

p

The column containing *p*-values.

...

Currently ignored.

Value

Returns the dataframe in tibble format with an additional column corresponding to APA-format statistical significance labels.

Author(s)

Indrajeet Patil

Examples

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)

Sorenson-Impact/sorensonimpact documentation built on Nov. 6, 2021, 4:25 a.m.