This is a wrapper function to allow kable to ouput a table with one input. This is not possible for current 1 dimensional tables. Either a table or vector can be provided.
1 | kableTable(what, dir = "h", horizontalColNames = c("Name", "Count"))
|
what |
A table or vector of data to tabulate |
dir |
Direction to produce table. "h" = horizonatl and anything else will be vertical. Default is "h". |
horizontalColNames |
A vector with length 2 used as column names if the table is vertical |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.