papaja (version 0.1.0.9842)

printp: Prepare numeric values for printing as p-value

Description

Convenience wrapper for printnum.numeric to print p-values with three decimal places.

Usage

printp(x, na_string = "")

Arguments

x

Numeric. Can be either a single value, vector, or matrix.

na_string

Character. String to print if element of x is NA.

Examples

Run this code
# NOT RUN {
printnum(0.05)
printnum(0.0005)
printnum(0.99999999)
# }

Run the code above in your browser using DataCamp Workspace