huxtable (version 0.2.2)

colspan: Column span

Description

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

Usage

colspan(ht)
colspan(ht) <- value
set_colspan(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 colspan, the colspan attribute. For set_colspan, the ht object.

Examples

Run this code

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

Run the code above in your browser using DataCamp Workspace