Last chance! 50% off unlimited learning
Sale ends in
printnum(x, gt1 = TRUE, zero = TRUE, margin = 1, na_string = "", ...)
printp(x, na_string = "")
x
is a matrix, the function is applied either across rows (margin = 1
)
or columns (margin = 2
).x
is NA
.formatC
printp
: Convenience wrapper for printnum
to print p-values with three decimal places.
x
is a vector, digits
, gt1
, and zero
can be vectors
according to which each element of the vector is formated. Parameters are recycled if length of x
exceeds length of the parameter vectors. If x
is a matrix, the vectors specify the formating
of either rows or columns according to the value of margin
.
printnum(1/3)
printnum(1/3, gt1 = FALSE)
printnum(1/3, digits = 5)
printnum(0)
printnum(0, zero = FALSE)
printp(0.0001)
Run the code above in your browser using DataLab