strs_isupper: Check if string is in uppercase

View source: R/isupper.R

strs_isupperR Documentation

Check if string is in uppercase

Description

strs_isupper checks whether each element of a character vector is in uppercase. It is similar to Python's str.isupper() method.

Usage

strs_isupper(string)

Arguments

string

A character vector to be checked.

Value

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

See Also

Python str.isupper() documentation

Examples

strs_isupper("HELLO")
strs_isupper("Hello")

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