powered by
Replace NULL
x %||% y
A value to check
A value to substitute if x is null
# NOT RUN { x <- NULL x <- x %||% "none" x <- x %||% NA # } # NOT RUN { # }
Run the code above in your browser using DataLab