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.

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)
#> [1] "0*1234567"