stri_isempty: Determine if a String is of Length Zero

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/length.R

Description

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

Usage

1

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.

Author(s)

Marek Gagolewski and other contributors

See Also

The official online manual of stringi at https://stringi.gagolewski.com/

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

Examples

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

stringi documentation built on May 17, 2021, 9:07 a.m.