Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stri_isempty

Determine if a String is of Length Zero


Description

This is the fastest way to find out whether the elements of a character vector are empty strings.

Usage

stri_isempty(str)

Arguments

str

character vector or an object coercible to

Details

Missing values are handled properly.

Value

Returns a logical vector of the same length as str.

See Also

Other length: stri_length(), stri_numbytes(), stri_width()

Examples

stri_isempty(letters[1:3])
stri_isempty(c(',', '', 'abc', '123', '\u0105\u0104'))
stri_isempty(character(1))

stringi

Character String Processing Facilities

v1.6.1
file LICENSE
Authors
Marek Gagolewski [aut, cre, cph] (<https://orcid.org/0000-0003-0637-6028>), Bartek Tartanus [ctb], and others (stringi source code); IBM, Unicode, Inc. and others (ICU4C source code, Unicode Character Database)
Initial release
2021-05-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.