Learn R Programming

pystr (version 2.0.0)

pystr_isupper: Check if a string is uppercase.

Description

Return TRUE if all cased characters in the string are uppercase and there is at least one cased character, FALSE otherwise.

Usage

pystr_isupper(str)

Arguments

str
A character vector.

Value

A logical vector.

References

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

See Also

pystr_islower

Examples

Run this code
pystr_islower("ALL UPPERCASE!")
pystr_islower("All Uppercase?")
pystr_islower("ABC123")

Run the code above in your browser using DataLab