For this example, we’ll use a portion of the countrypops dataset to create a simple gt table. Let’s move the year column, which is the middle column, to the end of the column series with cols_move_to_end().
We can also move multiple columns at a time. With the same countrypops-based table, let’s move both the year and country_name columns to the end of the column series.