powered by
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
pValueString(pVal)
character
p-value between 0 and 1
# 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