dtable_latex: latexify a dtable

View source: R/dtable-latex_format.R

dtable_latexR Documentation

latexify a dtable

Description

process dtable into latex code via Hmisc::latex

Usage

dtable_latex(
  dt,
  bling = TRUE,
  bling.param = as.list(NULL),
  file = "",
  where = "htb",
  rowname = NULL,
  grey = NULL,
  ...,
  no.below = FALSE,
  guide = NULL,
  format = FALSE,
  format.param = as.list(NULL)
)

dtable_list_latex(dtl, ..., label, caption, use.sprintf = TRUE)

Arguments

dt

a dtable

bling

shall we compose suitable table bling from the attributes? (default TRUE)

bling.param

list of parameters sent to attr2text, if non-empty bling will be set to TRUE

file

(default empty string) passed to Hmisc::latex

where

(default "htb") passed to Hmisc::latex

rowname

(default NULL) passed to Hmisc::latex

grey

should some lines be gray to improve readability? This requires that '\usepackage[table]{xcolor}' be added to the preamble. If TRUE then every other line is grey, but this can also be specifed as a variable name or a given vector, see the vignette 'describe-data' for details.

...

passed to Hmisc::latex

no.below

shortcut to remove the bling that is places below the table (hence will only do something if bling = TRUE)

guide

a guide to provide labels, minimally a data frame with variables 'variable' and 'label'

format

use dtable_format?

format.param

list of parameters to pass to dtable_format (if given will set format = TRUE).

dtl

a list of dtables

label

labels for the tables

caption

captions for the tables

use.sprintf

if TRUE then labels and captions should be uniform in text apart from the specification of type, where a '%s' should be.

Functions

  • dtable_list_latex(): create multiple latex tables from a dtable list


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.