add_multirow | R Documentation |
Turns duplicate rows which occur together into NAs and adds multirow to the remaining rows.
add_multirow(
x,
width = "*",
pos = "t",
rows = .,
reverse = FALSE,
hline = TRUE
)
x |
Character vector |
width |
Desired width of column to be passed to multirow in latex. e.g.
|
pos |
Character defining the vertical positioning of the text in the multirow block. Default is "t" - top. Other options are "c" for centre or "b" for bottom. |
rows |
Optional number of rows to use, if not given then
|
reverse |
If |
hline |
Logical indicating whether a hline should be added to the start of each multirow. |
A character string/vector
x <- c(rep("a", 5), rep("c", 2), rep("y", 7))
add_multirow(x)
add_multirow(x, reverse = TRUE)
add_multirow(x, width = "2cm", pos = "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.