Skip to contents

Controls how NA values are displayed in the table.

Usage

set_spec_missing(spec, text = NULL, apply_to = NULL)

Arguments

spec

A TableSpec object

text

Text to substitute for NA values

apply_to

Which columns to apply missing text to: "all", "numeric", or "character"

Value

Modified spec

Examples

spec <- TableSpec() |>
  set_spec_missing("-", apply_to = "numeric")