R: Column span

colspan {huxtable} | R Documentation

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

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

[Package huxtable version 3.0.0 Index]