paste.matrix: Paste for matrix

Description Usage Arguments Value Author(s) Examples

Description

paste.matrix is a generalization of paste for matrix.

Usage

1
2
  paste.matrix(..., sep = " ", collapse = NULL,
    byrow = FALSE)

Arguments

...

One or more matrix. All matrix are expand to the maximum dimensions with expand.

sep

a character string to separate the terms. Not NA.

collapse

an optional character string to separate the results. Not NA.

byrow

if !is.null{collapse} and byrow = TRUE, collapsing will be done by rows.

Value

A character matrix.

Author(s)

David Hajage dhajage@gmail.com

Examples

1
2
mat <- matrix(1:4, 2, 2)
cat(paste("|", sep = "", paste.matrix(mat, "|", sep = "", collapse = "")), sep = "\n")

eusebe/markup documentation built on May 16, 2019, 9:35 a.m.