kable | R Documentation |
This is a very simple table generator. It is simple by design. It is not intended to replace any other R packages for making tables. This is a trimmed down version of the original kable function in knitr package. Please refer to knitr's kable function for details.
kable( x, format, digits = getOption("digits"), row.names = NA, col.names = colnames(x), align, caption = NULL, escape = TRUE, ... )
x |
an R object (typically a matrix or data frame) |
format |
a character string; possible values are |
digits |
the maximum number of digits for numeric columns (passed to
|
row.names |
a logical value indicating whether to include row names; by
default, row names are included if |
col.names |
a character vector of column names to be used in the table |
align |
the alignment of columns: a character vector consisting of
|
caption |
the table caption |
escape |
escape special characters when producing HTML or LaTeX tables |
... |
other arguments (see examples) |
Yihui Xie http://yihui.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.