Learn R Programming

strs (version 0.1.0)

strs_lower: Convert string to lowercase

Description

strs_lower converts each element of a character vector to lowercase, based on the specified locale. It is similar to Python's str.lower() method.

Usage

strs_lower(string, locale = "en")

Value

A character vector of the same length as string, with each element converted to lowercase.

Arguments

string

A character vector to be converted to lowercase.

locale

A character string representing the locale to be used for the conversion.

See Also

Examples

Run this code
strs_lower("HELLO WORLD")
strs_lower("Äpfel", locale = "de")

Run the code above in your browser using DataLab