Set the alignment of columnsSource:
The individual alignments of columns (which includes the column labels and
all of their data cells) can be modified. We have the option to align text to
center, and the
right. In a less explicit manner, we can
allow gt to automatically choose the alignment of each column based on
the data type (with the
A table object that is created using the
The alignment type. This can be any of
"right"for center-, left-, or right-alignment. Alternatively, the
"auto"option (the default), will automatically align values in columns according to the data type (see the Details section for specifics on which alignments are applied).
The columns for which the alignment should be applied. By default this is set to
everything()which means that the chosen alignment affects all columns.
When you create a gt table object using
gt(), automatic alignment of
column labels and their data cells is performed. By default, left-alignment
is applied to columns of class
center-alignment is for columns of class
right-alignment is used for the
countrypops to create a gt table. Align the
data to the left.