R/isspace.R
strs_isspace.Rd
strs_isspace checks whether each element of a character vector containsonly whitespace characters. It is similar to Python'sstr.isspace() method.
strs_isspace
str.isspace()
strs_isspace(string)
A character vector to be checked.
A logical vector of the same length asstring, indicating whethereach element contains only whitespace characters.
string
Python str.isspace() documentation
strs_isspace(" ")#> [1] TRUEstrs_isspace("hello world")#> [1] FALSE