Learn R Programming

strs (version 0.1.0)

strs_islower: Check if string is in lowercase

Description

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)

Value

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

Arguments

string

A character vector to be checked.

See Also

Examples

Run this code
strs_islower("hello")
strs_islower("Hello")

Run the code above in your browser using DataLab