dot-if_na: Format a value replacing NA values

.if_naR Documentation

Format a value replacing NA values

Description

Format a value replacing NA values

Usage

.if_na(x, na.replace = "―", ...)

Arguments

x

a vector of values

na.replace

a value to replace NA values with

...

Arguments passed on to base::format

Value

a vector of character values

Examples

try({
.if_na( c(1,2,NA,4,5)/3, digits=2 )
})

terminological/ggrrr documentation built on June 15, 2024, 6:35 a.m.