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