Learn R Programming

radiant (version 0.1.95)

is_empty: Is a character variable defined

Description

Is a character variable defined

Usage

is_empty(x, empty = "")

Arguments

x
Character value to evaluate
empty
Indicate what 'empty' means. Default is empty string (i.e., "")

Value

TRUE if empty, else FALSE

Details

Is a variable NULL or an empty string

Examples

Run this code
is_empty("")
is_empty(NULL)

Run the code above in your browser using DataLab