format_value | R Documentation |
format
informationConverts a (possibly compound) value into a string using the format
information
format_value(x, format = NULL, output = c("ascii", "html"), na_str = "NA")
x |
( |
format |
( |
output |
( |
na_str |
( |
A length-zero value for na_str
will be interpreted as "NA"
.
Formatted text representing the cell x
.
round_fmt()
x <- format_value(pi, format = "xx.xx")
x
format_value(x, output = "ascii")
# na_str works with multiple values
format_value(c(NA, 1, NA), format = "xx.x (xx.x - xx.x)", na_str = c("NE", "<missing>"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.