format_missing() updates a rounding_specification object so that
missing values are printed as the user specifies.
Arguments
- rspec
a
rounding_specificationobject (see round_spec).- replace_na_with
a character value that replaces missing values.
Examples
rspec <- round_spec()
rspec <- format_missing(rspec, 'oh no!')
peri_value(x = c(pi, NA), rspec)
#> [1] "3.1" "oh no!"