format_pval_apa: Format a p-value

View source: R/format_strings.R

format_pval_apaR Documentation

Format a p-value

Description

This function takes a p-value (numeric or character) or list of p-values and formats it so that values less than 0.001 are treated as <0.001. Values less than 0.01 are treated as < 0.01

Usage

format_pval_apa(p_val, as.markdown = T)

Arguments

p_val

P-value to be formatted

as.markdown

optional, indicates whether the resulting string should be formatted for markdown. Default is TRUE

Value

A formatted p-value string


silverer/statstring documentation built on Aug. 6, 2023, 11:48 a.m.