merge_repeated_rows: Merge repeated rows into multirow cells
Description
merge_repeated_rows() looks within each column for
contiguous groups of identical cells. These are merged
by setting rowspan(). Doing this helps remove redundant
information from the table.
Usage
merge_repeated_rows(ht, row, col)
Value
The ht object.
Arguments
ht
A huxtable.
row
A row specifier. See rowspecs for details.
col
An optional column specifier.
Cell content
In merged cell ranges, only the top left cell's content is displayed.
In addition, when you merge cells (either by setting colspan() or
rowspan(), or using merge_cells() and friends) the content of the top
left cell is copied to other cells. This prevents unexpected changes to
content if you reorder or subset rows and columns.
Details
If row contains gaps, results may be unexpected (and a warning is given).