mypublish_matlist2wordtable: Print a list of matrices to a single word file with a table...

mypublish_matlist2wordtableR Documentation

Print a list of matrices to a single word file with a table of these matrices

Description

Print a list of matrices to a single word file with a table of these matrices

Usage

mypublish_matlist2wordtable(x, path, digits = 2)

Arguments

x

list of matrices

path

filename without ending

digits

digits for rounding

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) %>%
          xtable(align = rep("",4)) %>%
          print(tabular.environment="pmatrix",
                include.colnames = F,
                include.rownames = F,
                floating = F,
                hline.after = NULL)) %>%
          mypublish_mat("matrices")

## End(Not run)

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