Description Usage Arguments Details Value Examples
Converts a dataframe or matrix into a markdown table format.
1 2 |
x |
An R object, typically a matrix or data frame |
row.index, col.index |
A numeric vector correspond to the index position of the rows/columns to be included. By default, all columns and rows are included. |
row.names |
Logical: whether to include row names. By default, row names are included if rownames(x) is neither NULL nor identical to 1:nrow(x). |
header |
A character vector of length = ncol to be used for the header of the table. If provided, the original header will be replaced. |
align |
Column alignment: a character vector consisting of 'l' (left), 'c' (center) and/or 'r' (right). By default or if align = NULL, numeric columns are right-aligned, and other columns are left-aligned. If align = 'l', all columns are left aligned. e.t.c. |
The output markdown source code is stored as character vector in R. It can be further copied and pasted for other usage.
A character vector of the table source code.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.