latex2: Latex tables.

View source: R/latex2.R

latex2R Documentation

Latex tables.

Description

Exactly like latex of Hmisc, but fix a bug when using ctable=TRUE and add three arguments: do.begin, do.end, tight.

Usage

  latex2(object,
    title = first.word(deparse(substitute(object))),
    file = paste(title, ".tex", sep = ""), append = FALSE,
    do.begin = TRUE, do.end = TRUE, label = title,
    rowlabel = title, rowlabel.just = "l", cgroup = NULL,
    n.cgroup = NULL, rgroup = NULL, n.rgroup = NULL,
    cgroupTexCmd = "bfseries", rgroupTexCmd = "bfseries",
    rownamesTexCmd = NULL, colnamesTexCmd = NULL,
    cellTexCmds = NULL, rowname,
    cgroup.just = rep("c", sum(n.cgroup)), colheads = NULL,
    extracolheads = NULL, extracolsize = "scriptsize",
    dcolumn = FALSE, tight = FALSE,
    numeric.dollar = !dcolumn, cdot = FALSE,
    longtable = FALSE, draft.longtable = TRUE,
    ctable = FALSE, booktabs = FALSE, table.env = TRUE,
    here = FALSE, lines.page = 40, caption = NULL,
    caption.lot = NULL, caption.loc = c("top", "bottom"),
    double.slash = FALSE, vbar = FALSE,
    collabel.just = rep("c", nc), na.blank = TRUE,
    insert.bottom = NULL,
    first.hline.double = !(booktabs | ctable),
    where = "!tbp", size = NULL,
    center = c("center", "centering", "none"),
    landscape = FALSE, multicol = TRUE,
    math.row.names = FALSE, math.col.names = FALSE,
    rowcolors = NULL, ...)

Arguments

do.begin

Should the latex code at the beginning of table be printed?

do.end

Should the latex code at the end of table be printed?

tight

when using dcolumn tighten columns width.

rowcolors

This command is useful for inserting color command. For instance, if rowcolors=rowcolors{1}{green}{pink}, then the rows are subsequently coloured in green and in pink.

Details

Details here

Value

See latex of package Hmisc.

Author(s)

Giuseppe Ragusa


gragusa/grpack documentation built on July 6, 2023, 12:07 a.m.