pValueString {psychReport} | R 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")
[Package psychReport version 3.0.2 Index]