powered by
Merge a range of cells
merge_cells(ht, row, col)
A huxtable.
A row specifier. See rowspecs for details. Only the minimum and maximum rows and columns are used.
rowspecs
A column specifier.
The ht object.
ht
merge_cells(ht, c(min_row, max_row), c(min_col, max_col)) is equivalent to
merge_cells(ht, c(min_row, max_row), c(min_col, max_col))
colspan(ht)[min_row, min_col] <- max_col - min_col + 1 rowspan(ht)[min_row, min_col] <- max_row - min_row + 1
merge_repeated_rows
# NOT RUN { ht <- hux(a = 1:3, b = 1:3) ht <- set_all_borders(ht, 1) merge_cells(ht, 1:2, 1:2) # }
Run the code above in your browser using DataLab