mypublish_matrix2wordmath: Print single matrices as matrices in word math environemt

mypublish_matrix2wordmathR Documentation

Print single matrices as matrices in word math environemt

Description

The align argument of xtable outside of mypublish mat needs to be ncol(mat) \+ 1

Usage

mypublish_matrix2wordmath(x, filename)

Arguments

x

a single matrix as xtable %>% print(tabluar.environment = "pmatrix)

filename

filename without ending

Examples

## Not run: 
list(r_0 = matrix(1:9, ncol = 3),
     r_1 = matrix(0,ncol = 3, nrow = 3),
     r_opt_1 = matrix(2:10, nrow = 3)) %>%
  imap(~.x %>% round(2) %>% mypublish_mat(.y))

## End(Not run)

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.