Description Usage Arguments Details Value
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.
1 2 | sConvertMatrixToLaTexArray(pmatAMatrix, pnOutStartLine = 5,
pnEndIgnoreLines = 1, pnDigits = 2, pnAlign = NULL)
|
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 |
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.
string containing tex representation of matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.