signif_column: Creating a new column with significance labels

View source: R/misc.R

signif_columnR Documentation

Creating a new column with significance labels

Description

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

Usage

signif_column(data, p, ...)

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

# 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)

IntegralEnvision/integral documentation built on Nov. 4, 2024, 2 p.m.