powered by
Functions to get or set the alignment property of huxtable cells.
align(ht) align(ht) <- value set_align(ht, row, col, value, byrow = FALSE) map_align(ht, row, col, fn)
A huxtable.
A character vector or matrix which may be "left", "center", "right" , NA or a single character.
NA
Set to NA to reset to the default, which is "left".
"left"
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 align, the align property. For set_align and map_align, the modified huxtable.
align
set_align
map_align
This sets the horizontal alignment of the cell. If value is a single character (e.g. a decimal point), then the cell is aligned on this character.
value
# NOT RUN { align(jams) <- "right" align(jams) set_align(jams, "right") set_align(jams, 2:3, 1, "right") map_align(jams, by_rows("right", "left")) # }
Run the code above in your browser using DataLab