Use this as input into kableExtra:pack_rows

make_kable_rowgroup_string(data, varnm)

Arguments

data

Table to group vars (usually output from pretty_tb_df)

varnm

Variable to group by

Value

Named character vector: values are variable names and vector names are number of rows