powered by
Functions to get or set the column span property of huxtable table cells.
colspan(ht) colspan(ht) <- value set_colspan(ht, row, col, value, byrow = FALSE)
A huxtable.
An integer vector or matrix of integers. Set to NA to reset to the default.
NA
A row specifier. See rowspecs for details.
rowspecs
An optional column specifier.
If TRUE, fill in values by row rather than by column.
TRUE
For colspan, the colspan attribute. For set_colspan, the ht object.
colspan
set_colspan
ht
# NOT RUN { ht <- huxtable(a = 1:3, b = 1:3) colspan(ht)[1, 1] <- 2 colspan(ht) print_screen(ht) # }
Run the code above in your browser using DataLab