strs_istitle: Check if string is in title case

View source: R/istitle.R

strs_istitleR Documentation

Check if string is in title case

Description

strs_istitle checks whether each element of a character vector is title case. This is similar to Python's str.istitle method.

Usage

strs_istitle(string)

Arguments

string

A character vector where each element is a string to be checked.

Value

A logical vector of the same length as string, indicating whether each element is in title case.

See Also

Python str.istitle() documentation

Examples

strs_istitle("This Is Title Case")
strs_istitle("not title case")
strs_istitle("123 Another Example")

strs documentation built on Sept. 11, 2024, 6:44 p.m.