info_unit_conversions: View a table with all units that can be converted by...

View source: R/info_tables.R

info_unit_conversionsR Documentation

View a table with all units that can be converted by unit_conversion()

Description

unit_conversion() can be used to yield conversion factors across compatible pairs of units. This is useful for expressing values in different units and the conversion can be performed via the scale_by argument available in several formatting functions. When calling unit_conversion(), one must supply two string-based keywords to specify the value's current units and the desired units. All of these keywords are provided in the table shown by calling info_unit_conversions().

Usage

info_unit_conversions()

Value

An object of class gt_tbl.

Examples

Get a table of info on all the available keywords for unit conversions.

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

Function ID

11-9

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


rstudio/gt documentation built on June 29, 2024, 6:54 a.m.