Replace NULL
x %||% y
x
A value to check
y
A value to substitute if x is null
## Not run: x <- NULL x <- x %||% "none" x <- x %||% NA ## End(Not run)