Learn R Programming

cwhmisc (version 2.1)

tex.table: Convert a data matrix into LaTeX code.

Description

These functions convert a data matrix into latex{;{LaTeX}. } exact(x, prec) tex.table(datmat, bare = FALSE, precision = if (bare) "NA" else 2, rnames = if (bare) "-1" else dimnames(datmat)[[1]], cnames = if (bare) "-1" else dimnames(datmat)[[2]], caption = NULL, label = NULL, tpos = "b", stretch = NULL, adjust = "r", file = NULL) tex.tab.head(datmat, precision = 2, rnames = NULL, cnames = NULL, caption = NULL, label = NULL, tpos = "b", stretch = NULL, adjust = "r", file = NULL) tex.tab.tail(datmat, precision = 2, rnames = NULL, cnames = NULL, caption = NULL, label = NULL, tpos = "b", stretch = NULL, adjust = "r", file = NULL) tex.tabelle(datmat, precision = 2, rnames = NULL, cnames = NULL, caption = NULL, label = NULL, tpos = "b", stretch = NULL, adjust = "r", file = NULL) x{numeric item} prec{decimal precision (?)} datmat{data matrix} bare{TRUE: precision,rnames,cnames will get useful defaults, FALSE: set these parameters yourself} precision{precision of rounding within the LATEX table, if NA, then no transformation to numeric is done} rnames{row names} cnames{column names} caption{caption for LATEX table, default: no caption} label{LATEX label for the table, default: no lable} tpos{position of captions: above or below table, "a" for above, "b" for below} stretch{optional vector with two entries, giving the baselinestretch for the caption (stretch[1]) and the colums of the table (stretch[2]); default: no adjustment of baselinestretch} adjust{adjusts the columns of the LATEX table, default: "r" (right), also possible: "l" (left) and "c" (centre) or user defined: "adjust=c("l","c","r",...)" yields {l|cr...}} file{output file, default: printout in console}

These functions are called for their side effect to write to a file. xtable in package "xtable" [object Object] interface

Arguments