Skip to contents

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()).

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