prmatrix(x, rowlab =, collab =, quote = TRUE, right = FALSE, na.print = NULL, ...)
dimnames(x)
.TRUE
and x
is of mode
"character"
, quotes (") are used.TRUE
and x
is of mode
"character"
, the output columns are right-justified.NA
s are printed. If this is non-null, its
value is used to represent NA
.print
methods.x
.
prmatrix
is an earlier form of print.matrix
, and
is very similar to the S function of the same name.
print.default
, and other print
methods.
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