info_tf_style: View a table with info on TRUE/FALSE formatting styles

View source: R/info_tables.R

info_tf_styleR Documentation

View a table with info on TRUE/FALSE formatting styles

Description

fmt_tf() lets us format logical values in a convenient manner using preset styles. The table generated by info_tf_style() provides a quick reference to all styles, with associated format names and example output values.

Usage

info_tf_style(locale = NULL)

Arguments

locale

Locale identifier

⁠scalar<character>⁠ // default: NULL (optional)

An optional locale identifier that can be used for displaying formatted TRUE/FALSE values according to the locale's rules. Examples include "en" for English (United States) and "fr" for French (France). We can call info_locales() for a useful reference for all of the locales that are supported. Note that only styles 1-3 ("true-false", "yes-no", and "up-down") support localization.

Value

An object of class gt_tbl.

Examples

Get a table of info on the different TRUE/FALSE-formatting styles (which are used by supplying a number code or format name to fmt_tf()).

info_tf_style()
This image of a table was generated from the first code example in the `info_tf_style()` help file.

Function ID

11-7

Function Introduced

In Development

See Also

Other information functions: info_currencies(), info_date_style(), info_flags(), info_google_fonts(), info_icons(), info_locales(), info_paletteer(), info_time_style(), info_unit_conversions()


gt documentation built on Jan. 22, 2026, 9:07 a.m.