pval_to_symbol: Convert p values to symbols

View source: R/pval_to_symbol.R

pval_to_symbolR Documentation

Convert p values to symbols

Description

Converts a vector of p values into character vector of the symbols ***, **, *, †.

Usage

pval_to_symbol(p, marginal = TRUE, ns = FALSE)

Arguments

p

Vector of p values.

marginal

boolean. Should return dagger for p < .10?

ns

boolean. Should return "ns" for not significant or be empty character string?

Examples

pval_to_symbol(c(.50, .0004, .098, .044))
pval_to_symbol(c(.50, .0004, .098, .044), marginal = FALSE)
pval_to_symbol(c(.50, .0004, .098, .044), marginal = FALSE, ns = TRUE)

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.