row_height {huxtable}R Documentation

Row heights

Description

Functions to get or set the row heights property of huxtable rows.

Usage

row_height(ht)
row_height(ht) <- value
set_row_height(ht, row, value)

Arguments

ht

A huxtable.

value

A vector.

row

A row specifier. See rowspecs for details.

Details

If character, value must contain valid CSS or LaTeX lengths. If numeric, in HTML, values are scaled to 1 and treated as proportions of the table height. In LaTeX, they are treated as proportions of the text height (\textheight).

Value

For row_height, the row_height attribute. For set_row_height, the ht object.

See Also

Other row/column heights: col_width

Examples


ht <- huxtable(a = 1:3, b = 1:3)
row_height(ht) <-  c(.2, .1, .1)
row_height(ht)


[Package huxtable version 4.0.1 Index]