Last chance! 50% off unlimited learning
Sale ends in
bold(ht)
bold(ht) <- value
set_bold(ht, row, col, value, byrow = FALSE)italic(ht)
italic(ht) <- value
set_italic(ht, row, col, value, byrow = FALSE)
NA
to reset to the default.rowspecs
for details.TRUE
, fill in values by row rather than by column.bold
, the bold
attribute.
For set_bold
, the ht
object.background_color
,
font_size
, font
,
na_string
, number_format
,
text_color
ht <- huxtable(a = 1:3, b = 1:3)
bold(ht) <- TRUE
bold(ht)
print_screen(ht)
ht <- huxtable(a = 1:3, b = 3:1)
ht2 <- set_bold(ht, TRUE)
bold(ht2)
ht3 <- set_bold(ht, 1:2, 1, TRUE)
bold(ht3)
ht4 <- set_bold(ht, 1:2, 1:2, c(TRUE, FALSE), byrow = TRUE)
bold(ht4)
ht5 <- set_bold(ht, where(ht == 1), TRUE)
bold(ht5)
Run the code above in your browser using DataLab