Formatting includes:
Text align to top/left
Smaller row padding
No top border
Bold column labels
If this function is called within a document that is being knit to plain
markdown, such as format: gfm
in a Quarto document or
format: github_document
in an RMarkdown document, then a plain
markdown-formatted table (e.g., without footnotes) is returned via
kable
.
Arguments
- df
Data frame/tibble
- md
Optional. If not
NULL
, then the given columns will be printed with markdown formatting, e.g.,md = c(1, 3)
for columns 1 and 3. Defaults to1
, i.e., the first column.- indent
Optional. Detects cells in the first column of table, e.g., from
rifttable
where the first column contains the labels, that start with at least two spaces. This text is then indented viatab_style
. Defaults10
for 10 pixels. Set toNULL
to turn off.- remove_border
Optional. For rows that are indented in the first column or have an empty first column, remove the upper horizontal border line? Defaults to
TRUE
.