huxtable (version 1.0.0)

set_outer_borders: Set outer borders round a rectangle of cells

Description

This is a convenience function to set a border round the top, bottom, left and right of a group of cells.

Usage

set_outer_borders(ht, row, col, value)

Arguments

ht

A huxtable

row

A set of rows. See below.

col

A set of columns.

value

A numeric value for the border width. Set to 0 for no border.

Value

The modified huxtable.

Details

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.

See Also

left_border, set_all_borders

Examples

Run this code
# 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