Debian Codegraph @

man/format_html.ftable.Rd

raw
1 \name{format_html.ftable}
2 \alias{format_html.ftable}
3 \alias{format_html.ftable_matrix}
4 \alias{ftable_format_stdstyle}
5 \title{
6 Format "Flattened Tables" as HTML
7 }
8 \description{
9 This is the method of \code{\link{format_html}} for "ftable" objects (i.e. flattened
10 contingency tables)
11 }
12 \usage{
13 \method{format_html}{ftable}(x,
14 show.titles = TRUE,
15 digits = 0,
16 format = "f",
17 toprule = 2, midrule = 1, bottomrule = 2,
18 split.dec = TRUE,
19 style = ftable_format_stdstyle,
20 margin="2ex auto",
21 \dots)
22 \method{format_html}{ftable_matrix}(x,
23 show.titles=TRUE,
24 digits=0,
25 format="f",
26 toprule=2,midrule=1,bottomrule=2,
27 split.dec=TRUE,
28 style = ftable_format_stdstyle,
29 margin="2ex auto",
30 varontop,
31 varinfront,
32 grouprules=1,
33 multi_digits=NULL,
34 \dots)
35 }
36 \arguments{
37 \item{x}{an object of class \code{\link{ftable}}.}
38 \item{show.titles}{logical; should the names of the cross-classified variables be shown?}
39 \item{digits}{number of digits to be shown after the decimal dot. This is only useful, if
40 the "ftable" object was created from a table created with \code{\link{genTable}} or the like.}
41 \item{format}{a format string for \code{\link{formatC}}}
42 \item{toprule}{integer;
43 thickness in pixels of rule at the top of the table.}
44 \item{midrule}{integer;
45 thickness in pixels of rules within the table.}
46 \item{bottomrule}{integer;
47 thickness in pixels of rule at the bottom of the table.}
48 \item{split.dec}{logical; whether numbers should be centered
49 at the decimal point by splitting the table cells.}
50 \item{style}{string containing the standard CSS styling of table cells.}
51 \item{margin}{character string, determines the margin and thus
52 the position of the HTML table.}
53 \item{varontop}{logical; whether names of column variables should appear on top of factor levels}
54 \item{varinfront}{logical; whether names of row variables should
55 appear in front of factor levels}
56 \item{grouprules}{integer, should be either 1 or 2; whether one or
57 two rules should drawn to distinguish groups of rows.}
58 \item{multi_digits}{NULL, a numeric vector, or a list. If it is a
59 list it should have as many elements as
60 the "ftable_matrix" contains columns, where each vector has
61 as many columns as the respective "ftable". If it is a
62 vector, it is put into a list with replicated elements
63 according to the "ftable" components.
64 The elements of these vectors can be used to specify a separate
65 number of digits for each column of the respective "ftable".}
66 \item{\dots}{further arguments, ignored.}}
67 \seealso{
68 See Also as \code{\link{format_html}}, \code{\link{show_html}}, \code{\link{write_html}}.
69 }