Let’s use a small portion of the countrypops dataset to create a gt table. We can hide the country_code_2 and country_code_3 columns with the cols_hide() function.
Using another countrypops-based gt table, we can use the population column to provide the conditional placement of footnotes. Then, we’ll hide that column along with the country_code_3 column. Note that the order of cols_hide() and tab_footnote() has no effect on the final display of the table.