Print a character matrix as a table.
# S3 method for table.md
print(
x,
col.sep = "",
header.sep = "",
row.begin = "",
row.end = "",
table.style = c("plain", "md", "latex"),
...
)
No return.
A character matrix.
Column separator. Default to ""
.
Header separator. Default to "-"
.
Character at the beginning of each row.
Default to col.sep
.
Character at the ending of each row.
Default to col.sep
.
Name of pre-defined style.
Possible values are "plain"
, "md"
or "latex"
. Default to "plain"
.
Additional style control arguments.
When table.style
is specified, col.sep
, header.sep
, row.begin
and row.end
would not take effects.
Because this function will automatically set their values.
For each possible value of table.style
, its corresponding style settings
are shown in the following table.
plain | md | latex | |
col.sep | "" | "|" | "&" |
header.sep | "" | "-" | "" |
row.begin | "" | "|" | "" |
row.end | "" | "|" | "\\" |
In this function, characters are right padded by spaces.
print.hgwrm()
, summary.hgwrm()
.