Learn R Programming

phuse (version 0.2.2)

is_empty: Check if a variable is na or null or space

Description

check if string or list is empty (na, null or blank spaces).

Usage

is_empty(x)

Arguments

x

a list or string

Value

true or false

Examples

Run this code
# NOT RUN {
  is_empty(NULL);
  is_empty('');
  is_empty(NA);
# }

Run the code above in your browser using DataLab