Learn R Programming

table.glue (version 0.0.5)

format_missing: Format missing values

Description

format_missing() updates a rounding_specification object so that missing values are printed as the user specifies.

Usage

format_missing(rspec, replace_na_with)

Value

an object of class rounding_specification.

Arguments

rspec

a rounding_specification object (see round_spec).

replace_na_with

a character value that replaces missing values.

Examples

Run this code

rspec <- round_spec()
rspec <- format_missing(rspec, 'oh no!')
table_value(x = c(pi, NA), rspec)

Run the code above in your browser using DataLab