width: Set the table width

Description Usage Arguments Value See Also Examples

Description

width() sets the width of the entire table, while col_width() sets the width of individual columns. A numeric width is treated as a proportion of f the surrounding block width (HTML) or text width (LaTeX). A character width must be a valid CSS or LaTeX dimension.

Usage

1
2
3
width(ht)
width(ht) <- value
set_width(ht, value)

Arguments

ht

A huxtable.

value

A number or string. Set to NA to reset to the default, which is NA.

Value

width() returns the width property. set_width() returns the modified huxtable.

See Also

Other table measurements: col_width(), height(), row_height()

Examples

1
2
width(jams) <-  0.8
width(jams)

huxtable documentation built on Feb. 15, 2021, 1:07 a.m.