Learn R Programming

quickcode (version 1.0.6)

not.null: Not NULL

Description

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

Usage

not.null(x)

Value

a boolean value to indicate if entry is NULL

Arguments

x

vector entry

Examples

Run this code
is.null("") # FALSE
not.null("") # TRUE
not.null(NULL) # FALSE
if(not.null(45)) message("something") # yes

Run the code above in your browser using DataLab