util_replace_null converts NULL values a different value. Default is converting NULL to NA.

util_replace_null(x, val = NA)

Arguments

x

A NULL value or a non-NULL object

val

Specify what the null value should be returned as, default is NA

Value

NA or a non-NULL object

Examples

if (FALSE) {
util_replace_null(NULL)
}