huxtable (version 4.5.0)

bold: Cell text style

Description

Functions to get or set the cell text style property of huxtable cells.

Usage

bold(ht)
bold(ht) <- value
set_bold(ht, row, col, value, byrow = FALSE)
map_bold(ht, row, col, fn)

italic(ht) italic(ht) <- value set_italic(ht, row, col, value, byrow = FALSE) map_italic(ht, row, col, fn)

Arguments

ht

A huxtable.

value

A logical vector or matrix. TRUE for bold/italic.

Set to NA to reset to the default, which is FALSE.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

fn

A mapping function. See mapping-functions for details.

byrow

Deprecated. Use by_cols() instead.

Value

For bold, the bold property. For set_bold and map_bold, the modified huxtable.

Similarly for italic and friends.

See Also

Other formatting functions: background_color, font_size, font, na_string, number_format, text_color

Examples

Run this code
# NOT RUN {
bold(jams) <-  TRUE
bold(jams)


set_bold(jams, TRUE)
set_bold(jams,
      2:3, 1, TRUE)
map_bold(jams,
      by_rows(TRUE, FALSE))
# }

Run the code above in your browser using DataLab