is_blank: Test if a character vector consists of blank strings

View source: R/string.R

is_blankR Documentation

Test if a character vector consists of blank strings

Description

Return a logical vector indicating if elements of a character vector are blank (white spaces or empty strings).

Usage

is_blank(x)

Arguments

x

A character vector.

Value

TRUE for blank elements, or FALSE otherwise.

Examples

xfun::is_blank("")
xfun::is_blank("abc")
xfun::is_blank(c("", "  ", "\n\t"))
xfun::is_blank(c("", " ", "abc"))

xfun documentation built on Nov. 1, 2024, 1:06 a.m.