powered by
Is a character variable defined
is_empty(x, empty = "\\s*")
Character value to evaluate
Indicate what 'empty' means. Default is empty string (i.e., "")
TRUE if empty, else FALSE
Is a variable NULL or an empty string
# NOT RUN { is_empty("") is_empty(NULL) is_empty(NA) is_empty(c()) is_empty("none", empty = "none") is_empty("") is_empty(" ") is_empty(" something ") # }
Run the code above in your browser using DataLab