PrintLatex: Helper function to make Hmisc's latex easier

Description Usage Arguments Value

View source: R/tools.R

Description

Helper function to make Hmisc's latex easier

Usage

1
2
3
4
5
PrintLatex(x, file = "", booktabs = T, ctable = F, caption = NULL,
  caption.loc = "top", rowlabel = "", n.cgroup = NULL, cgroup = NULL,
  n.rgroup = NULL, rgroup = NULL, p.columns = NULL, p.level = 0.05,
  p.cmd = "bfseries", cellTexCmds = NULL, sanitize = function(xx) {     xx
  }, ...)

Arguments

file

the file to be written, default to "" which means no file but stdout

booktabs

boolean, whether to use booktabs package or not, default to TRUE

ctable

boolean, whether to use ctable package or not, default to FALSE

caption

see Hmisc::latex, default to NULL.

caption.loc

see Hmisc::latex, default to "top".

rowlabel

label for first column with rownames, default to ""

n.cgroup

see Hmisc::latex, default to NULL. If NULL but cgroup is not will be set accordingly

cgroup

see Hmisc::latex

n.rgroup

see Hmisc::latex, default to NULL. If NULL but rgroup is not will be set accordingly

rgroup

see Hmisc::latex

p.columns

column numbers of columns with p values. If NULL p values are not highlighted. Default to NULL.

p.level

p values below that significance level are highligted for better reading (only if p.columns is given). Default to 0.05

p.cmd

character string. The latex command used to highlight p values. Default to "bfseries" for boldface.

cellTexCmds

see Hmisc::latex. Default to NULL.

sanitize

function to sanitize row- and colnames. Default is the identical function where nothing will be replaced.

...

further arguments to Hmisc::latex

data

frame or matrix to be printed

Value

returns (invisible) a list of class latex, see Hmisc latex for details


sagade/inf460 documentation built on Dec. 31, 2020, 3:15 a.m.