Below is an example that shows a custom table header with grouped columns: For the named vector in add_header_above(), the names are the text to be shown in the table header, and the integer values of the vector indicate how many columns a name should span, e.g., "Length" = 2 means Length should span two columns. Below is an example of using a smaller font size: The functions row_spec() and column_spec() can be used to style individual rows and columns, respectively. Suspicious referee report, are "suggested citations" from a paper mill? We might want to do other things, too, like bold the cell with the highest percent for each of the levels of Education. Then, you can specify to collapse the rows by the first column using collapse_rows: creating tables, see How can I set the default value for an HTML