Debian Codegraph @

man/mtable-format-latex.Rd

raw
1 \name{mtable_format_latex}
2 \alias{mtable_format_latex}
3 \title{Format 'mtable' Results for LaTeX}
4 \description{
5 This function formats objects created by \code{\link{mtable}} for inclusion
6 into LaTeX files.
7 }
8 \usage{
9 mtable_format_latex(x,
10 useDcolumn=getOption("useDcolumn",TRUE),
11 colspec=if(useDcolumn)
12 paste("D{.}{",LaTeXdec,"}{",ddigits,"}",sep="")
13 else "l",
14 LaTeXdec=".",
15 ddigits=min(3,getOption("digits")),
16 useBooktabs=getOption("useBooktabs",TRUE),
17 toprule=if(useBooktabs) "\\\\toprule" else "\\\\hline\\\\hline",
18 midrule=if(useBooktabs) "\\\\midrule" else "\\\\hline",
19 cmidrule=if(useBooktabs) "\\\\cmidrule" else "\\\\cline",
20 bottomrule=if(useBooktabs) "\\\\bottomrule" else "\\\\hline\\\\hline",
21 interaction.sep = " $\\\\times$ ",
22 sdigits=min(1,ddigits),
23 compact=FALSE,
24 sumry.multicol=FALSE,
25 escape.tex=getOption("toLatex.escape.tex",FALSE),
26 signif.notes.type=getOption("toLatex.signif.notes.type","include"),
27 signif.notes.spec=getOption("toLatex.signif.notes.spec","p{.5\\\\linewidth}"),
28 \dots
29 )
30 }
31 \arguments{
32 \item{x}{an object of class \code{mtable}}
33 \item{useDcolumn}{should the \code{dcolumn} LaTeX package be used?
34 If true, you will have to include \code{\\usepackage{dcolumn}} into
35 the preamble of your LaTeX document.}
36 \item{colspec}{LaTeX table column format specifyer(s).}
37 \item{LaTeXdec}{the decimal point in the final LaTeX output.}
38 \item{ddigits}{alignment specification or digits after the decimal point.}
39 \item{useBooktabs}{should the \code{booktabs} LaTeX package be used?
40 If true, you will have to include \code{\\usepackage{booktabs}} into
41 the preamble of your LaTeX document.}
42 \item{toprule}{appearance of the top border of the LaTeX \code{tabular} environment.}
43 \item{midrule}{how are coefficients and summary statistics
44 separated in the LaTeX \code{tabular} environment.}
45 \item{cmidrule}{appearance of rules under section headings.}
46 \item{bottomrule}{appearance of the bottom border of the LaTeX \code{tabular} environment.}
47 \item{interaction.sep}{a character string that separates factors that are involved
48 in an interaction effect}
49 \item{sdigits}{integer; number of digits after decimal dot for summary statistics.}
50 \item{compact}{logical; should the table be compact, without extra columns
51 between multi-equation models?}
52 \item{sumry.multicol}{logical, should summaries enclosed into
53 \code{\\multicol} commands?}
54 \item{escape.tex}{logical, should symbols \code{$}, \code{_}, and \code{^} be
55 escaped with backslashes?}
56 \item{signif.notes.type}{character string; should be either
57 \code{"include"},\code{"append"}, \code{"drop"}, or \code{"tnotes"}. If
58 \code{"append"}, (very simple) LaTeX code is appended that contains
59 notes that relate significance symbols to p-values. If
60 \code{"include"}, the LaTeX table will include a (multi-column)
61 cell with these notes. If \code{"drop"}, notes will not be added.
62 If \code{"tnotes"}, the exported LaTeX
63 table is wrapped in a \code{threeparttable} environment and the
64 p-value notes are wrapped in a \code{tablenotes} environment. This
65 requires the LaTeX package \code{threeparttable} in order to work.
66 }
67 \item{signif.notes.spec}{character string; specifies format
68 of cells that include notes about p-values; relevant only if
69 \code{signif.notes.type="include"}
70 }
71 \item{\dots}{further arguments, ignored. }
72 }
73 \value{
74 A character string with code suitable for inclusion into a LaTeX-file.
75 }
76 \keyword{misc}