This is a convenience function to set a border round the top, bottom, left and right of a group of cells.
set_outer_borders(ht, row, col, value)
A huxtable
A set of rows. See below.
A set of columns.
A numeric value for the border width. Set to 0 for no border.
The modified huxtable.
Only standard R subsetting may be used for row and col. That is, logical, numeric or character indices are allowed, but not the tricks in rowspecs.
row
col
rowspecs
left_border, set_all_borders
left_border
set_all_borders
# NOT RUN { ht <- huxtable(a = 1:3, b = 1:3) ht <- set_outer_borders(ht, 2:3, 1:2, 1) ht # }
Run the code above in your browser using DataLab