Skip to contents

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.

Examples

strs_isupper("HELLO")
#> [1] TRUE
strs_isupper("Hello")
#> [1] FALSE