powered by
Functions to get or set the cell text style property of huxtable cells.
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)
italic(ht) italic(ht) <- value set_italic(ht, row, col, value, byrow = FALSE) map_italic(ht, row, col, fn)
A huxtable.
A logical vector or matrix. TRUE for bold/italic.
TRUE
Set to NA to reset to the default, which is FALSE.
NA
FALSE
A row specifier. See rowspecs for details.
An optional column specifier.
A mapping function. See mapping-functions for details.
Deprecated. Use by_cols() instead.
by_cols()
For bold, the bold property. For set_bold and map_bold, the modified huxtable.
bold
set_bold
map_bold
Similarly for italic and friends.
italic
Other formatting functions: background_color, font_size, font, na_string, number_format, text_color
background_color
font_size
font
na_string
number_format
text_color
# NOT RUN { orig <- bold(jams) bold(jams) <- TRUE bold(jams) bold(jams) <- orig 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