Functions to get or set the row span property of huxtable table cells.
rowspan(ht)
rowspan(ht) <- value
set_rowspan(ht, row, col, value, byrow = FALSE)
A huxtable.
An integer vector or matrix of integers. Set to NA
to reset to the default.
A row specifier. See rowspecs
for details.
An optional column specifier.
If TRUE
, fill in values by row rather than by column.
For rowspan
, the rowspan
attribute.
For set_rowspan
, the ht
object.
# NOT RUN {
ht <- huxtable(a = 1:3, b = 1:3)
rowspan(ht)[1, 1] <- 2
rowspan(ht)
print_screen(ht)
# }
Run the code above in your browser using DataLab