R/istitle.R
strs_istitle.Rd
strs_istitle checks whether each element of a character vector is title case. This is similar to Python's str.istitle method.
strs_istitle
str.istitle
strs_istitle(string)
A character vector where each element is a string to be checked.
A logical vector of the same length as string, indicating whether each element is in title case.
string
Python str.istitle() documentation
strs_istitle("This Is Title Case") #> [1] TRUE strs_istitle("not title case") #> [1] FALSE strs_istitle("123 Another Example") #> [1] TRUE