Learn R Programming

formatters (version 0.5.11)

fmt_config: Format configuration

Description

Format configuration

Usage

fmt_config(format = NULL, na_str = "NA", align = "center")

Value

An object of class fmt_config which contains the following elements:

  • format

  • na_str

  • align

Arguments

format

(string or function)
a format label (string) or formatter function.

na_str

(string)
string that should be displayed in place of missing values.

align

(string)
alignment values should be rendered with.

Examples

Run this code
fmt_config(format = "xx.xx", na_str = "-", align = "left")
fmt_config(format = "xx.xx - xx.xx", align = "right")

Run the code above in your browser using DataLab