collapse_rows: Collapse repeated rows to multirow cell
Description
Collapse same values in columns into multirow cells. This
feature does similar things with group_rows. However, unlike group_rows,
it analyzes existing columns, finds out rows that can be grouped together,
and make them multirow cells. Note that if you want to use column_spec to
specify column styles, you should use column_spec before collapse_rows.
A numeric value or vector indicating in which column(s) rows
need to be collapsed.
valign
Select from "top", "middle"(default), "bottom". The reason why
"top" is not default is that the multirow package on CRAN win-builder is
not up to date.
latex_hline
Option controlling the behavior of adding hlines to table.
Choose from full, major, none, custom.
row_group_label_position
Option controlling positions of row group
labels. Choose from identity, stack.
custom_latex_hline
Numeric column positions whose collapsed rows will
be separated by hlines.
row_group_label_fonts
A list of arguments that can be supplied to
group_rows function to format the row group label when
row_group_label_position is stack
headers_to_remove
Numeric column positions where headers should be
removed when they are stacked.