Determine if a String is of Length Zero
This is the fastest way to find out whether the elements of a character vector are empty strings.
stri_isempty(str)
str |
character vector or an object coercible to |
Missing values are handled properly.
Returns a logical vector of the same length as str.
Other length:
stri_length(),
stri_numbytes(),
stri_width()
stri_isempty(letters[1:3])
stri_isempty(c(',', '', 'abc', '123', '\u0105\u0104'))
stri_isempty(character(1))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.