Description Usage Arguments Value Author(s) Examples
paste.matrix
is a generalization of
paste
for matrix.
1 2 | paste.matrix(..., sep = " ", collapse = NULL,
byrow = FALSE)
|
... |
One or more matrix. All matrix are expand to
the maximum dimensions with |
sep |
a character string to separate the terms. Not
|
collapse |
an optional character string to separate
the results. Not |
byrow |
if |
A character matrix.
David Hajage dhajage@gmail.com
1 2 | mat <- matrix(1:4, 2, 2)
cat(paste("|", sep = "", paste.matrix(mat, "|", sep = "", collapse = "")), sep = "\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.