huxtable (version 1.0.0)

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
# 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 DataCamp Workspace