Examples for 'xtable::xtableMatharray'


Create LaTeX Mathematical Array

Aliases: xtableMatharray

Keywords: print

### ** Examples

V <- matrix(c(1.140380e-03,  3.010497e-05,  7.334879e-05,
              3.010497e-05,  3.320683e-04, -5.284854e-05,
              7.334879e-05, -5.284854e-05,  3.520928e-04), nrow = 3)
mth <- xtableMatharray(V)
class(mth)
[1] "xtableMatharray" "xtable"          "data.frame"     
str(mth)
Classes 'xtableMatharray', 'xtable' and 'data.frame':	3 obs. of  3 variables:
 $ 1: num  1.14e-03 3.01e-05 7.33e-05
 $ 2: num  3.01e-05 3.32e-04 -5.28e-05
 $ 3: num  7.33e-05 -5.28e-05 3.52e-04
 - attr(*, "align")= chr [1:4] "r" "r" "r" "r"
 - attr(*, "digits")= num [1:4] 0 2 2 2
 - attr(*, "display")= chr [1:4] "s" "f" "f" "f"
unclass(mth)
$`1`
[1] 1.140380e-03 3.010497e-05 7.334879e-05

$`2`
[1]  3.010497e-05  3.320683e-04 -5.284854e-05

$`3`
[1]  7.334879e-05 -5.284854e-05  3.520928e-04

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"

[Package xtable version 1.8-4 Index]