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 = ".")
a rounding_specification
object (see round_spec).
a character value used to represent the decimal point.
an object of class rounding_specification
.
Other formatting helpers:
format_small()
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"