(string or function) the format label (string) or formatter function to
apply to x.
output
(string) output type.
na_str
(character) character vector to display when the values of x are missing.
If only one string is provided, it is applied for all missing values. Defaults to "NA".
Details
A length-zero value for na_str will be interpreted as "NA".
x <- format_value(pi, format = "xx.xx")
x
format_value(x, output = "ascii")
# na_str works with multiple valuesformat_value(c(NA, 1, NA), format = "xx.x (xx.x - xx.x)", na_str = c("NE", ""))