
Converts a (possibly compound) value into a string using the format information
Source: R/format_value.R
format_value.RdConverts 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
(
stringorfunction)
the format label (string) or formatter function to apply tox.- output
(
string)
output type.- na_str
(
string)
string to display when the value ofxis missing. Defaults to"NA".
Details
A length-zero value for na_str will be interpreted as "NA", as will any
missing values within a non-length-zero na_str vector.