| escape_contents {huxtable} | R Documentation |
Functions to get or set the escape cell contents property of huxtable table cells.
escape_contents(ht) escape_contents(ht) <- value set_escape_contents(ht, row, col, value, byrow = FALSE)
ht |
A huxtable. |
value |
A logical vector or matrix. If |
row |
A row specifier. See |
col |
An optional column specifier. |
byrow |
If |
For escape_contents, the escape_contents attribute.
For set_escape_contents, the ht object.
ht <- huxtable(Exponent = 2:4, Example = paste0('$x^', 2:4, '$'))
escape_contents(ht)[,2] <- FALSE
ht <- huxtable(a = 1:3, b = 3:1)
ht2 <- set_escape_contents(ht, TRUE)
escape_contents(ht2)
ht3 <- set_escape_contents(ht, 1:2, 1, TRUE)
escape_contents(ht3)
ht4 <- set_escape_contents(ht, 1:2, 1:2, c(TRUE, FALSE), byrow = TRUE)
escape_contents(ht4)
ht5 <- set_escape_contents(ht, where(ht == 1), TRUE)
escape_contents(ht5)