f_kable | R Documentation |
Prints Kable in R-Markdown (PDF only, not HTML).
f_kable(
df.input,
c.caption = "Add nice caption through 'c.caption'",
c.position = "center",
v.align = NULL,
v.width.cm = 2,
n.angle = NULL,
n.font.size = 8,
c.latex_options = "basic",
v.grey.col = NULL,
b.grey.col = TRUE,
n.top = "all"
)
df.input |
Data frame to put in kable table. |
c.caption |
Add nice caption. |
c.position |
Options: "center", "left" (default: "center") |
v.align |
Vector containing "l", "c", "r" indicating how to align each column (default: NULL) |
v.width.cm |
Width of column (default: 2) |
n.angle |
Angle of text in header (default: NULL). |
n.font.size |
Font size (default: 8). |
c.latex_options |
String of latex options (default: "basic"). |
v.grey.col |
Column numbers to give grey background (default: NULL). |
b.grey.col |
Add grey column to columns with total in header? (default: TRUE). |
n.top |
Number of rows to print (default: "all"). |
-
Kable output.
Pieter Overdevest
kable.output <- f_kable(
df.input = mtcars,
c.caption = "Add nice caption",
c.position = "center",
v.align = NULL,
v.width.cm = 2,
n.angle = NULL,
n.font.size = 8,
c.latex_options = "basic",
v.grey.col = NULL,
b.grey.col = TRUE,
n.top = "all"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.