Learn R Programming

psychReport (version 3.0.2)

pValueString: 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)

Value

character

Arguments

pVal

p-value between 0 and 1

Examples

Run this code
# Example 1:
pString <- pValueString(0.670)

# Example 2:
pString <- pValueString(0.1234)

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

Run the code above in your browser using DataLab