if_null_then: If NULL then ...

Description Usage Arguments Examples

Description

Replace NULL

Usage

1
x %||% y

Arguments

x

A value to check

y

A value to substitute if x is null

Examples

1
2
3
4
5
6
## Not run: 
x <- NULL
x <- x %||% "none"
x <- x %||% NA

## End(Not run)

openxlsx documentation built on June 16, 2021, 9:06 a.m.