format_decimal: Format decimal symbol

View source: R/round_spec.R

format_decimalR Documentation

Format decimal symbol

Description

format_decimal() lets you update the settings of a rounding_specification object (see round_spec) so that the decimal is represented by a user-specified mark.

Usage

format_decimal(rspec, mark = ".")

Arguments

rspec

a rounding_specification object (see round_spec).

mark

a character value used to represent the decimal point.

Value

an object of class rounding_specification.

See Also

Other formatting helpers: format_small()

Examples


small_x <- 0.1234567

rspec <- round_spec()
rspec <- round_using_decimal(rspec, digits = 7)
rspec <- format_decimal(rspec, mark = '*')

table_value(small_x, rspec)


table.glue documentation built on Feb. 16, 2023, 9:29 p.m.