pystr_istitle: Check if a string is titlecase.

Description Usage Arguments Value References Examples

Description

Return TRUE if the string is a titlecased string and there is at least one character, for example uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return FALSE otherwise.

Usage

1

Arguments

str

A character vector.

Value

A logical vector.

References

https://docs.python.org/3/library/stdtypes.html#str.istitle

Examples

1
2
pystr_istitle("I Am A Title")
pystr_istitle("I Am not A Title")

pystr documentation built on April 15, 2017, 12:30 a.m.