
Last chance! 50% off unlimited learning
Sale ends in
An earlier method for printing matrices, provided for S compatibility.
prmatrix(x, rowlab =, collab =,
quote = TRUE, right = FALSE, na.print = NULL, …)
numeric or character matrix.
(optional) character vectors giving row or column
names respectively. By default, these are taken from
dimnames(x)
.
logical; if TRUE
and x
is of mode
"character"
, quotes (") are used.
if TRUE
and x
is of mode
"character"
, the output columns are right-justified.
how NA
s are printed. If this is non-null, its
value is used to represent NA
.
arguments for print
methods.
Invisibly returns its argument, x
.
prmatrix
is an earlier form of print.matrix
, and
is very similar to the S function of the same name.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
print.default
, and other print
methods.
# NOT RUN {
prmatrix(m6 <- diag(6), rowlab = rep("", 6), collab = rep("", 6))
chm <- matrix(scan(system.file("help", "AnIndex", package = "splines"),
what = ""), , 2, byrow = TRUE)
chm # uses print.matrix()
prmatrix(chm, collab = paste("Column", 1:3), right = TRUE, quote = FALSE)
# }
Run the code above in your browser using DataLab