add_clines | R Documentation |
\clines
to an object of class "xtable"
Produces a list with 'pos' and 'command' to use with xtable()
's
add.to.row
option. This will create a partial horizontal line across
specified columns of the table. Users can either specify the row numbers
they'd like to add the cline to or the function will look for the rows which
use multirow in a specified column.
add_clines(xtab, rows = "multirow", cols, check.column)
xtab |
the |
rows |
either |
cols |
a character string with the columns over which to draw the cline
(e.g, |
check.column |
a character string of the column to check when
|
A list with levels 'pos' and 'command' to give to the add.to.row
option of xtable()
.
xtab <- xtable::xtable(head(iris))
xtable::print.xtable(xtab, add.to.row = add_clines(., rows = c(2, 3), cols = "3-4"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.