Easily Create Presentation-Ready Display Tables
Adjust the luminance for a palette of colors
Transform a gt table to a gtable
object
Output a gt object as LaTeX
Get the HTML content of a gt table
Output a gt object as RTF
Output a gt object as Word
Transform a gt object to a data frame
Helper for defining custom borders for table cells
Helper for defining custom fills for table cells
Helper for defining custom text styles for table cells
Location helper for targeting data cells in the table body
Location helper for targeting the column labels
Location helper for targeting the column spanners
Location helper for targeting the footnotes
Location helper for targeting cells in a grand summary
Location helper for targeting row groups (deprecated)
Location helper for targeting row groups
Location helper for targeting the source notes
Location helper for targeting the stub cells in a grand summary
Location helper for targeting the stub cells in a summary
Location helper for targeting cells in the table stub
Location helper for targeting the table stubhead cell
Location helper for targeting group summary cells
Location helper for targeting the table title and subtitle
Add one or more columns to a gt table
Align all numeric values in a column along the decimal mark
Set the alignment of columns
Hide one or more columns
Relabel columns with a function
Relabel one or more columns
Merge two columns to combine counts and percentages
Merge two columns to a value range column
Merge columns to a value-with-uncertainty column
Merge data from two or more columns to a single column
Move one or more columns to the end
Move one or more columns to the start
Move one or more columns
Add a new column of nanoplots, taking input data from selected columns
Unhide one or more columns
Define units for one or more columns
Set the widths of columns
Supply a custom currency symbol to fmt_currency()
Perform data cell colorization
Provide a vector of sensible system fonts for use with gt tables
Perform LaTeX escaping
Extract the table body from a gt object
Extract a vector of formatted cells from a gt object
Extract a summary list from a gt object
Automatically format column data according to their values
Format column data containing bin/interval information
Format values as bytes
Format chemical formulas
Generate country names from their corresponding country codes
Format values as currencies
Format values as dates
Format values as datetimes
Format numeric or duration values as styled time duration strings
Format email addresses to generate 'mailto:' links
Format values to engineering notation
Generate flag icons for countries from their country codes
Format values as mixed fractions
Use icons within a table's body cells
Format image paths to generate images in cells
Format values to indexed characters
Format values as integers
Format Markdown text
Format missing values (deprecated)
Format numeric values
Format values as parts-per quantities
Format by simply passing data through
Format values as a percentage
Format values as Roman numerals
Format values to scientific notation
Format values to spelled-out numbers
Format TRUE
and FALSE
values
Format values as times
Format measurement units
Format URLs to generate links
Set a column format with a formatter function
Formatting functions
Reference a column of values for certain parameters
Helper function for adding a ggplot
Helper function for specifying a font from the Google Fonts servic...
Add grand summary rows using aggregation functions
Add one or more gt tables to a gt_group
container object
Clone one or more gt tables in a gt_group
container object
Modify table options for all tables within a gt_group
object
Pull out a gt table from a gt_group
container object
Replace one or more gt tables in a gt_group
container object
Remove one or more gt tables from a gt_group
container object
Create a gt_group
container for holding multiple gt table objects
Get the LaTeX dependencies required for a gt table
Create a gt display table output element for Shiny
Generate a special gt table for previewing a dataset
Split a table into a group of tables (a gt_group
)
gt package options
gt: Easily Create Presentation-Ready Display Tables
Create a gt table object
Save a gt table as a file
Interpret input text as HTML-formatted text
View a table with info on supported currencies
View a table with info on date styles
View a table with all available flags for fmt_flag()
View a table on recommended Google Fonts
View a table with all available Font Awesome icons for fmt_icon()
View a table with info on supported locales
View a table with info on color palettes
View a table with info on time styles
View a table with all units that can be converted by `unit_conversion(...
Helper function for adding a local image
Localize formatting and symbols
Helper to target cells at locations
Interpret input text as Markdown-formatted text
Supply nanoplot options to cols_nanoplot()
Option to align the table header
Option to use all caps in select table locations
Option to add custom CSS for the table
Option to modify the set of footnote marks
Option to specify the formatting of footnote marks
Option to expand or contract horizontal padding
Option to put interactive elements in an HTML table
Option to add or remove row striping
Stylize your table with a colorful look
Options to define font choices for the entire table
Option to set table lines to different extents
Option to wrap an outline around the entire table
Option to expand or contract vertical padding
Helper for providing a numeric value as percentage
Print a gt table
Helper for providing a numeric value as pixels value
Helper for creating a random id
for a gt table
Objects exported from other packages
A gt display table render function for use in Shiny
Remove the table caption
Remove table footnotes
Remove the table header
Remove table source notes
Remove column spanner labels
Remove the stubhead label
Modify the ordering of any row groups
Select helper for targeting the row group column
Add one or more rows to a gt table
Apply conditional formatting to cells with rows
and columns
Select helper for targeting the stub column
Substitute large values in the table body
Substitute missing values in the table body
Substitute small values in the table body
Substitute targeted values in the table body
Substitute zero values in the table body
Add group-wise summary rows using aggregation functions
Get a themed font stack that works well across systems
Add a table caption
Add a table footnote
Add a table header
Understand what's been set inside of a gt table object
Modify the table output options
Add a row group to a gt table
Add a source note citation
Create column labels and spanners via delimited column names
Add a spanner label
Control indentation of row labels in the stub
Add label text to the stubhead
Target cells in the table body and style accordingly
Add custom styles to one or more cells
Generate a path to a test image
Perform whole or partial text replacements with a 'switch'-like approa...
Perform whole text replacements using a 'case-when'-expression approac...
Perform highly targeted text replacement with a regex pattern
Perform text transformations with a custom function
Get a conversion factor across two measurement units of a given class
Format a vector as values in terms of bytes
Format a vector as currency values
Format a vector as date values
Format a vector as datetime values
Format a vector of numeric or duration values as styled time duration ...
Format a vector as values in engineering notation
Format a vector as mixed fractions
Format a vector as indexed characters
Format a vector as integer values
Format a vector containing Markdown text
Format a vector as numeric values
Format a vector as parts-per quantities
Format a vector as percentage values
Format a vector as Roman numerals
Format a vector as values in scientific notation
Format a vector as spelled-out numbers
Format a vector as time values
Helper function for adding an image from the web
Build display tables from tabular data with an easy-to-use set of functions. With its progressive approach, we can construct display tables with a cohesive set of table parts. Table values can be formatted using any of the included formatting functions. Footnotes and cell styles can be precisely added through a location targeting system. The way in which 'gt' handles things for you means that you don't often have to worry about the fine details.
Useful links