Skip to contents

strs_islower checks whether each element of a character vector is in lowercase. It is similar to Python's str.islower() method.

Usage

strs_islower(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 lowercase.

Examples

strs_islower("hello")
#> [1] TRUE
strs_islower("Hello")
#> [1] FALSE