Converts a (possibly compound) value into a string using the format
information
Source: R/format_value.R
format_value.Rd
Converts a (possibly compound) value into a string using the format
information
Usage
format_value(x, format = NULL, output = c("ascii", "html"), na_str = "NA")
Arguments
- x
(
ANY
)
the value to be formatted.- format
(
string
orfunction
)
the format label (string) or formatter function to apply tox
.- output
(
string
)
output type.- na_str
(
character
)
character vector to display when the values ofx
are missing. If only one string is provided, it is applied for all missing values. Defaults to"NA"
.