Learn R Programming

strs (version 0.1.0)

strs_isupper: 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)

Value

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

Arguments

string

A character vector to be checked.

See Also

Examples

Run this code
strs_isupper("HELLO")
strs_isupper("Hello")

Run the code above in your browser using DataLab