huxtable (version 0.2.2)

rowspan: Row span

Description

Functions to get or set the row span property of huxtable table cells.

Usage

rowspan(ht)
rowspan(ht) <- value
set_rowspan(ht, row, col, value, byrow = FALSE)

Arguments

ht
A huxtable.
value
An integer vector or matrix of integers. Set to NA to reset to the default.
row
A row specifier. See rowspecs for details.
col
An optional column specifier.
byrow
If TRUE, fill in values by row rather than by column.

Value

For rowspan, the rowspan attribute. For set_rowspan, the ht object.

Examples

Run this code

ht <- huxtable(a = 1:3, b = 1:3)
rowspan(ht)[1, 1] <-  2
rowspan(ht)
print_screen(ht, blank = '.')

Run the code above in your browser using DataLab