pval_stars: Pretty print for p-values

View source: R/pval_utils.R

pval_starsR Documentation

Pretty print for p-values

Description

Pretty print for p-values.

Usage

pval_stars(p = NULL, less_05 = TRUE)

Arguments

p

A numeric vector of p-values.

less_05

if TRUE (default) return stars only for p < 0.05

Value

The function returns a character vector with stars related to p-value.

Examples


pval1 <- c(NA, 0, 0.005, 0.01, 0.025, 0.05, 0.07, 0.5, 1, 3)
cbind(pval1, pval_stars(pval1))


lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.