dot-if_present: Format a value omitting NA values

.if_presentR Documentation

Format a value omitting NA values

Description

Format a value omitting NA values

Usage

.if_present(x, ...)

Arguments

x

a vector of values

...

Arguments passed on to base::format

Value

a vector of character values

Examples

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

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