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 Feb. 16, 2023, 6:47 p.m.