ID EN
Miscellaneous

prmatrix

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Metode sebelumnya untuk mencetak matriks, menyediakan kompatibilitas S.

Syntax

R
prmatrix(x, rowlab =, collab =,
         quote = TRUE, right = FALSE, na.print = NULL, …)

Arguments

Parameter Deskripsi
x numeric or character matrix.
rowlab, collab (optional) character vectors giving row or column names respectively. By default, these are taken from dimnames(x).
quote logical; if TRUE and x is of mode "character", quotes (") are used.
right if TRUE and x is of mode "character", the output columns are right-justified.
na.print how NAs are printed. If this is non-null, its value is used to represent NA.
… arguments for print methods.

Return Value

Mengembalikan argumennya secara tidak kasat mata, x.

Details

prmatrix adalah bentuk awal dari print.matrix, dan sangat mirip dengan fungsi S dengan nama yang sama.

Contoh

Example
R
# 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)
# }

See Also

print.default and other print methods.