pValueString: pValueString

View source: R/utils.R

pValueStringR Documentation

pValueString

Description

Returns Latex formatted string from a p-value required for R/knitr integration. For example, p = 0.11 or p < 0.01 Returns values to 3 sig decimal places or < .001

Usage

pValueString(pVal)

Arguments

pVal

p-value between 0 and 1

Value

character

Examples

# Example 1:
pString <- pValueString(0.670)

# Example 2:
pString <- pValueString(0.1234)

# Example 3:
pString <- pValueString("0.03")


psychReport documentation built on Sept. 9, 2022, 5:08 p.m.