Identify and style summary rows

sumrow(
  rows,
  col = 1,
  hline = TRUE,
  hline2 = FALSE,
  bold = FALSE,
  it = FALSE,
  blank = NULL,
  label = NULL,
  depanel = TRUE
)

Arguments

rows

integer or logical vector of rows that are summary rows

col

integer or character (name) column location that labels the summary row

hline

logical; if TRUE, a horizontal line will be placed above the summary row

hline2

logical; if TRUE a second line is added above and below the summary row

bold

logical; if TRUE, then the cell(s) identified by rows and col will be rendered in bold font

it

logical; if TRUE, then the cell(s) identified by rows and col will be rendered in italic font

blank

integer column positions in the summary row(s) to be made blank

label

character label to replace text in cell(s) marked by row(s) and `col

depanel

if TRUE, then these rows are not included in panel determination