empty_str: Check if a character string/vec is empty

Description Usage Arguments Value Examples

View source: R/general.R

Description

Checks include NULL, "", or character vectors of length 0.

Usage

1

Arguments

x

character string or vector of strings

Value

logical value

Examples

1
2
3
4
5
6
7
8
# all empty
empty_str(NULL)
empty_str("")
empty_str(character())
empty_str(c("", ""))

# not empty, one string contains a space
empty_str(c("", " "))

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.