string_isblank | R Documentation |
Compare string vectors.
string_isblank(s) string_isupper(s) string_islower(s)
s |
A string (character) vector. |
The function string_isblank()
tests whether a vector consists of only blank characters. Synonyms are s_isblank()
, isblank()
, and is.blank()
.
The %like%
operator tests whether a pattern match is found in a string.
The functions string_isupper()
and string_islower()
test whether each element in a string vector is all uppercase or lowercase, respectively. Synonyms are s_fun()
, isfun()
, and is.fun()
(replace "fun" with "upper" or "lower").
Boolean vector.
https://github.com/robertschnitman/stringops
string_isblank(" ") string_isblank(" string ") rownames(mtcars) %like% "^M" string_isupper(c('TEST', 'test', 'tEsT')) string_islower(c('TEST', 'test', 'tEsT'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.