sConvertMatrixToLaTexArray: Convert matrix to LaTeX array

Description Usage Arguments Details Value

Description

The matrix specified by pmatAMatrix is converted to a LaTeX array using function xtable::xtable. The function xtable::xtable produces a tabular LaTeX-object which is converted to a LaTeX-array using simple string replacement of the LaTeX environment specifiers. Some lines at the beginning and at the end are ignored. The number of lines that are ignored can be specified using the parameters pnOutStartLine and pnEndIgnoreLines.

Usage

1
2
sConvertMatrixToLaTexArray(pmatAMatrix, pnOutStartLine = 5,
  pnEndIgnoreLines = 1, pnDigits = 2, pnAlign = NULL)

Arguments

pmatAMatrix

Matrix to be represented in tex format

pnOutStartLine

line index where output should start, default = 5

pnEndIgnoreLines

number of lines to be ignored at the end of the output, default = 1

pnDigits

specify the number of digits to be used

pnAlign

character vector denoting column alignment

Details

Because in R vectors and matrices are different objects, when we want to use this function for a vector, it has to be converted to a matrix first.

Value

string containing tex representation of matrix


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.