format_missing() updates a rounding_specification object so that missing values are printed as the user specifies.

format_missing(rspec, replace_na_with)

Arguments

rspec

a rounding_specification object (see round_spec).

replace_na_with

a character value that replaces missing values.

Value

an object of class rounding_specification.

Examples


rspec <- round_spec()
rspec <- format_missing(rspec, 'oh no!')
table_value(x = c(pi, NA), rspec)
#> [1] "3.1"    "oh no!"