| align {huxtable} | R Documentation |
Functions to get or set the alignment property of huxtable table cells.
align(ht) align(ht) <- value set_align(ht, row, col, value, byrow = FALSE)
ht |
A huxtable. |
value |
A character vector or matrix which may be 'left', 'center', 'right' or |
row |
A row specifier. See |
col |
An optional column specifier. |
byrow |
If |
For align, the align attribute.
For set_align, the ht object.
ht <- huxtable(a = 1:3, b = 1:3)
align(ht) <- 'right'
align(ht)
ht <- huxtable(a = 1:3, b = 3:1)
set_align(ht, 'right')
set_align(ht, 1:2, 1, 'right')
set_align(ht, 1:2, 1:2, c('right', 'left'), byrow = TRUE)
set_align(ht, where(ht == 1), 'right')