ipmisc (version 1.2.0)

signif_column: Creating a new column with significance labels

Description

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

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.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataCamp Workspace