if_null_then {openxlsx} | R 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)
[Package openxlsx version 4.2.6.1 Index]