With loc.stubhead(), we can target the part of table that resides both at the top of the stub and also beside the column header. This is useful for applying custom styling with the tab_style() method. That method has a locations= argument and this class should be used there to perform the targeting.
A LocStubhead object, which is used for a locations= argument if specifying the stubhead of the table.
Examples
Let’s use a subset of the gtcars dataset in a new table. This table contains a stub (produced by setting rowname_col="model" in the initial GT() call). The stubhead is given a label by way of the tab_stubhead() method and this label can be styled by using locations=loc.stubhead() within tab_style().