powered by
Convenience wrapper for printnum.numeric to print p values.
printnum.numeric
printp(x, digits = 3L, na_string = "", add_equals = FALSE)
Numeric. Can be either a single value, vector, or matrix.
Integer. The desired number of digits after the decimal point, passed on to formatC.
formatC
Character. String to print if element of x is NA.
x
NA
Logical. Indicates if the output string should be prepended with an equals sign.
# NOT RUN { printp(0.05) printp(0.0005) printp(0.99999999) # }
Run the code above in your browser using DataLab