Skip to contents

Opposite of is.null(). Check if entry is not NULL

Usage

not.null(x)

Arguments

x

vector entry

Value

a boolean value to indicate if entry is NULL

Examples

is.null("") # FALSE
#> [1] FALSE
not.null("") # TRUE
#> [1] TRUE
not.null(NULL) # FALSE
#> [1] FALSE
if(not.null(45)) message("something") # yes
#> something