Convert tabular object to knitr_kable format.
toKable(table, format = getKnitrFormat(), booktabs = TRUE, ...) getKnitrFormat(default = "latex")
table |
An object of class |
format |
The type of |
booktabs |
Should the table be rendered in |
... |
Additional arguments to pass to |
default |
The default type of output if not running in a knitr document. |
An object of class knitr_kable, suitable for passing
to functions in the kableExtra package.
if (requireNamespace("kableExtra")) {
tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
(Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
print(kableExtra::kable_styling(toKable(tab), latex_options = "striped"))
cat("\n")
toKable(tab, format = "html", options = list(HTMLcaption = "Fisher's iris data"))
}Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.