Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/xtableMatharray.R
Convert an array of numbers or mathematical expressions into an
xtableMatharray
object so it can be printed. A convenience
function to enable the printing of arrays in mathematical expressions
in LaTeX
1 2 
x 
A numeric or character matrix. 
caption 
Character vector of length 1 or 2 containing the
table's caption or title. If length is 2, the second item is the
"short caption" used when LaTeX generates a "List of Tables". Set to

label 
Character vector of length 1 containing the LaTeX
label. Set to 
align 
Character vector of length equal to the number of columns
of the resulting table, indicating the alignment of the corresponding
columns. Also, 
digits 
Numeric vector of length equal to one (in which case it
will be replicated as necessary) or to the number of columns of the
resulting table or matrix of the same size as the resulting
table, indicating the number of digits to display in the
corresponding columns. Since the row names are printed in the first
column, the length of the vector 
display 
Character vector of length equal to the number of columns of the
resulting table, indicating the format for the corresponding columns.
Since the row names are printed in the first column, the length of

auto 
Logical, indicating whether to apply automatic format when no value
is passed to 
... 
Additional arguments. (Currently ignored.) 
This function is only usable for production of LaTeX documents, not HTML.
Creates an object of class
c("xtableMatharray","xtable","data.frame")
, to ensure that it is
printed by the print method print.xtableMatharray
.
An object of class c("xtableMatharray","xtable","data.frame")
.
David Scott <[email protected]>
1 2 3 4 5 6 7 
[1] "xtableMatharray" "xtable" "data.frame"
Classes 'xtableMatharray', 'xtable' and 'data.frame': 3 obs. of 3 variables:
$ 1: num 1.14e03 3.01e05 7.33e05
$ 2: num 3.01e05 3.32e04 5.28e05
$ 3: num 7.33e05 5.28e05 3.52e04
 attr(*, "align")= chr "r" "r" "r" "r"
 attr(*, "digits")= num 0 2 2 2
 attr(*, "display")= chr "s" "f" "f" "f"
$`1`
[1] 1.140380e03 3.010497e05 7.334879e05
$`2`
[1] 3.010497e05 3.320683e04 5.284854e05
$`3`
[1] 7.334879e05 5.284854e05 3.520928e04
attr(,"row.names")
[1] 1 2 3
attr(,"align")
[1] "r" "r" "r" "r"
attr(,"digits")
[1] 0 2 2 2
attr(,"display")
[1] "s" "f" "f" "f"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.