Learn R Programming

quickcode (version 1.0.6)

not.empty: Not empty

Description

Check if entry is not empty

Usage

not.empty(x)

is.empty(x)

Value

a boolean value to indicate if entry is empty

Arguments

x

vector entry

Examples

Run this code
not.empty("empty") # TRUE
not.empty('') # FALSE
not.empty(y<-NULL) # FALSE
if(not.empty('')) message("yes") # NULL

Run the code above in your browser using DataLab