NA values in the huxtable are printed as the value of na_string
.
na_string(ht) na_string(ht) <- value set_na_string(ht, row, col, value ) map_na_string(ht, row, col, fn)
ht | A huxtable. |
---|---|
row | A row specifier. See rowspecs for details. |
col | An optional column specifier. |
fn | A mapping function. See mapping-functions for details. |
value | A character vector or matrix. Set to |
na_string()
returns the na_string
property.
set_na_string()
returns the modified huxtable.
Other formatting functions:
background_color()
,
bold()
,
font_size()
,
font()
,
number_format()
,
text_color()
jams[3, 2] <- NA jams#> Type Price #> Strawberry 1.90 #> Raspberry #> Plum 1.80 #> #> Column names: Type, Priceset_na_string(jams, "---")#> Type Price #> Strawberry 1.90 #> Raspberry --- #> Plum 1.80 #> #> Column names: Type, Price