if_null_then: If NULL then ...

if_null_thenR Documentation

If NULL then ...

Description

Replace NULL

Usage

x %||% y

Arguments

x

A value to check

y

A value to substitute if x is null

Examples

## Not run: 
x <- NULL
x <- x %||% "none"
x <- x %||% NA

## End(Not run)


openxlsx documentation built on Sept. 20, 2024, 5:08 p.m.