Last chance! 50% off unlimited learning
Sale ends in
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)
A huxtable.
A logical vector or matrix. TRUE
for bold/italic.
Set to NA
to reset to the default, which is 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.
For bold
, the bold
property.
For set_bold
and map_bold
, the modified huxtable.
Similarly for italic
and friends.
Other formatting functions: background_color
,
font_size
, font
,
na_string
, number_format
,
text_color
# 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