- x
A data frame. May also be a list of data frames, to export multiple
data frames into multiple tables.
- sep
Column separator.
- header
Header separator. Can be NULL
.
- cross
Character that is used where separator and header lines cross.
- empty_line
Separator used for empty lines. If NULL
, line remains
empty (i.e. filled with whitespaces).
- digits
Number of digits for rounding or significant figures. May also
be "signif"
to return significant figures or "scientific"
to return scientific notation. Control the number of digits by adding the
value as suffix, e.g. digits = "scientific4"
to have scientific
notation with 4 decimal places, or digits = "signif5"
for 5
significant figures (see also signif()
).
- protect_integers
Should integers be kept as integers (i.e., without
decimals)?
- missing
Value by which NA
values are replaced. By default, an
empty string (i.e. ""
) is returned for NA
.
- width
Refers to the width of columns (with numeric values). Can be
either NULL
, a number or a named numeric vector. If NULL
, the width for
each column is adjusted to the minimum required width. If a number, columns
with numeric values will have the minimum width specified in width
. If
a named numeric vector, value names are matched against column names, and
for each match, the specified width is used (see 'Examples'). Only applies
to text-format (see format
).
- format
Name of output-format, as string. If NULL
(or "text"
),
returned output is used for basic printing. Can be one of NULL
(the
default) resp. "text"
for plain text, "markdown"
(or
"md"
) for markdown and "html"
for HTML output.
- title, caption, subtitle
Table title (same as caption) and subtitle, as strings. If NULL
,
no title or subtitle is printed, unless it is stored as attributes (table_title
,
or its alias table_caption
, and table_subtitle
). If x
is a list of
data frames, caption
may be a list of table captions, one for each table.
- footer
Table footer, as string. For markdown-formatted tables, table
footers, due to the limitation in markdown rendering, are actually just a
new text line under the table. If x
is a list of data frames, footer
may be a list of table captions, one for each table.
- align
Column alignment. For markdown-formatted tables, the default
align = NULL
will right-align numeric columns, while all other
columns will be left-aligned. If format = "html"
, the default is
left-align first column and center all remaining. May be a string to
indicate alignment rules for the complete table, like "left"
,
"right"
, "center"
or "firstleft"
(to left-align first
column, center remaining); or maybe a string with abbreviated alignment
characters, where the length of the string must equal the number of columns,
for instance, align = "lccrl"
would left-align the first column, center
the second and third, right-align column four and left-align the fifth
column. For HTML-tables, may be one of "center"
, "left"
or
"right"
.
- group_by
Name of column in x
that indicates grouping for tables.
Only applies when format = "html"
. group_by
is passed down
to gt::gt(groupname_col = group_by)
.
- zap_small
Logical, if TRUE
, small values are rounded after
digits
decimal places. If FALSE
, values with more decimal
places than digits
are printed in scientific notation.
- table_width
Numeric, or "auto"
, indicating the width of the complete
table. If table_width = "auto"
and the table is wider than the current
width (i.e. line length) of the console (or any other source for textual
output, like markdown files), the table is split into two parts. Else,
if table_width
is numeric and table rows are larger than table_width
,
the table is split into two parts.
- verbose
Toggle messages and warnings.
- ...
Currently not used.